How do I add a lifecycle policy to an index via the API?

Isn't this page?