IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Responses

edit
200

(EmptyResponse) The cluster name was successfully changed

404

(BasicFailedReply) The cluster specified by {cluster_id} cannot be found (code: 'clusters.cluster_not_found')

449

(BasicFailedReply) When running as an administrator (other than root), sudo is required (code: 'root.needs_sudo')