Create or update a lifecycle policy
- PUT /_ilm/policy/{policy}
If the specified policy exists, it is replaced and the policy version is incremented.
Note
Only the latest version of the policy is stored, you cannot revert to previous versions.
Required authorization
- Index privileges manage
- Cluster privileges manage_ilm