[source, ruby]
----
response = client.ilm.put_lifecycle(
  policy: 'my_policy',
  body: {
    policy: {
      phases: {
        hot: {
          actions: {
            unfollow: {}
          }
        }
      }
    }
  }
)
puts response
----
