# Reset 'elastic' user password **POST /deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password** Resets the password of the 'elastic' user. ## Servers - https://api.elastic-cloud.com/api/v1: https://api.elastic-cloud.com/api/v1 () ## Parameters ### Path parameters - **deployment_id** (string) Identifier for the Deployment. - **ref_id** (string) User-specified RefId for the Resource (or '_main' if there is only one). ### Query parameters - **check_completion** (boolean) If true, will not reset elastic user password and instead will return a status code signaling whether or not the current credentials are ready to use (eg from creation or the last call to _reset_password) ## Responses ### 200 The password reset was out carried successfully #### Body: application/json (object) - **username** (string) The username for the newly-reset password for the given Elasticsearch cluster - **password** (string) The newly-reset password for the given Elasticsearch cluster ### 404 * The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`) * The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request ### 500 Failed to reset the 'elastic' user's password. (code: `deployments.elasticsearch.password_reset_error`) #### Headers - **x-cloud-error-codes** (string) The error codes associated with the response #### Body: application/json (object) - **errors** (array[object]) A list of errors that occurred in the failing request [Powered by Bump.sh](https://bump.sh)