Users

Reset/update password. It changes password for user after login confirmation.

PUT reset password

Endpoint

PUT /api/v1/users/password

Parameters

Name Description
user[reset_password_token] required Reset password token
user[password] required New password
user[password_confirmation] required New password confirmation

Request

Route

PUT /api/v1/users/password

Headers

Accept: application/json
Content-Type: application/json
Host: example.org
Cookie: 

Body

{
  "user": {
    "reset_password_token": "Xx-W-Jz7giCHaSxkwLny",
    "password": "Valid123!",
    "password_confirmation": "Valid123!"
  }
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODQ4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTUzLCJleHAiOjE3NDUwNTY5NTMsImp0aSI6ImZmMzdhMTE2LTFkY2EtNGZlNS05ZjA2LTUzNjM2ZmU3YjRkYyJ9.5qk3s6ZTxgJR_OJ_6-EsYaAQu92WZVi9F5n67bzbUDM
set-cookie: _interslice_session=sGeTsj0trCxtztjJYKUSW0oRHUPSFvleJviRfZ486YkQuW4dxxLEPoNsS5NcnH6AmijB9LL4lCmrG4FBSNY%2FG4WvXeDT9XALutvoZ8pEkrN0TcsrejbiW%2BZQ9WiemDSXS8%2BXsoV8szS5rA4SBGqVCSe0LnxMfI8C81qjJNHSblQTdwQZGw9mQcD9w9LQ3obC8E8qiJI%2BOabzqac0H%2Bag1d3th%2FmGPydyxOOtrYwiYx8CUHnb%2F5XrSqjnf7LIJw5EhWh7q%2B3PqQdO7Itjsr3zB9%2B7x5MPVY2HNR1eSWDvYw%3D%3D--Vzdh%2BI28r8lBAcVV--Jqq%2F%2FkEwkconDnYyVa0ZOQ%3D%3D; path=/; httponly; SameSite=Lax
etag: W/"36b2ee1b9062cefbb13982ed8c076e3c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 0c41af95-9da2-450c-a122-7d86494e05e7
x-runtime: 0.011964
content-length: 183

Body

{
  "user": {
    "id": 1848,
    "email": "eilene.kuhic+driver@example.com",
    "first_name": "Eilene",
    "last_name": "Kuhic",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "375590",
    "role": "driver"
  }
}