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.

  • Index privileges: manage
  • Cluster privileges: manage_ilm
About index lifecycle management

Path Parameters

policy string Name required

Identifier for the policy.

Request

Response