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": "3jZbLE_5vtnVkEshtX4d",
    "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.eyJzdWIiOiIxODU4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDc4LCJleHAiOjE3NjM1NDI0NzgsImp0aSI6IjIxZDljZDBkLTk3MTEtNDg4NC1hNTU4LTM4YzM5OTY0NmRkYyJ9.3y-uCw2bbzM8xIIPCllZrC_r4J1QI74f9LpbwFJL3bM
set-cookie: _interslice_session=wRz2BU3dPmTTxvGX9PKIbuJsniUuj1Z1mAtWmswWzh9zUAxaMRTbIdbXPGl4lm%2BfNAU3MOImPgGxb1Sced8O82DYlZYGg6Ed5MsO%2Fv4%2BC7Bvqoy89autkQdJaqdCNMhDavKliDPk%2BHHG66BwjgHRkaqVDz7Ny%2B%2BAaBFvqHUunDbdT9bq5mVEFAIEmyREPqa20dagdA0UoZFKH4jSxnTVei5kaNALIkURQTrfjcIeGPCfZHavRK9nrPPd4a1NJXHYdiOa6M7TSAKuuUi3SfxPbUFGskvO0z%2FJ74yCKiyhag%3D%3D--LRlFzbGe2nsIZ9GO--dS%2FdpQBgkyE6pLXr6cxogQ%3D%3D; path=/; httponly; samesite=lax
etag: W/"1b706d2b92b412c0bdba66ea1810bb40"
cache-control: max-age=0, private, must-revalidate
x-request-id: 266a1d1b-6491-4959-8b00-37caf0ad961f
x-runtime: 0.011132
content-length: 191

Body

{
  "user": {
    "id": 1858,
    "email": "clarence.reinger+driver@example.com",
    "first_name": "Clarence",
    "last_name": "Reinger",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "862080",
    "role": "driver"
  }
}