Skip to Content
Users Passwords

Reset the user password

Deprecated

POST
/users/password/reset

Header Parameters

Accept*string

application/json

Content-Type*string

application/json

Request Body

A JSON object containing the resource data

application/json
  1. body
token*string

The unique token generated by the API and sent to the user's e-mail address when the send-reset-link operation has been triggered.

email*string

The email of the user to reset the password.

password*string

The new password to define to user account.

password_confirmation*string

The new password again.

Response Body

Ok

application/json
  1. response
message*string

Message with information about the response

Example Request
curl -X POST 'https://api.devopness.com/users/password/reset' \  -H 'Accept: application/json' \  -H 'Content-Type: application/json' \  -H 'Content-Type: application/json' \  -d '{  "token": "55e16e05980a5ed3b48d8ace4282b6b3b9c92f4f2cf3d50f1c67e38a53e43b7d",  "email": "my-email@devopness.com",  "password": "my-password",  "password_confirmation": "my-password"}'
Example Response
{  "message": "Your password has been reset"}