Saturday, December 24, 2016

Users Resources

PUT users/password


Update the password of the user.

Requires authentication

  • A valid access token must be provided in access_token parameter.

The access_token should be sent using an HTTP header like so:

 Authorization: Bearer access_token

An example call with CURL:

 curl --header "Authorization: Bearer jLJeOz8aEIsKtGSdXsqTDGxmtEduUGkZTVJBo3We"


All parameters are required.

  • password - The new password of the user. Must be at least 6 characters.
  • password_confirmation - Must be the same as the password field.

Example request:

curl -X PUT --header "Authorization: Bearer jLJeOz8aEIsKtGSdXsqTDGxmtEduUGkZTVJBo3We" --data "password=azerty&password_confirmation=azerty"

Return format

A JSON object containing keys status and success.

  • status value: password_updated
  • success value: The new password has been set.


All known errors cause the resource to return HTTP error code header together with a JSON array containing at least status and error keys describing the source of error.

  • 400 Bad Request — When the status key is wrong_password.

error messages

  • If status is wrong_password: The password must be at least 6 characters., The password confirmation does not match.





With HTTP code 200:

   "success":"The new password has been set."


For an error with HTTP code 400:

   "error":"The password confirmation does not match."

Powered by Codex 1.1.0