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": "yKs7S5yz9EYp5DfPyWRz",
    "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.eyJzdWIiOiIxODE3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTkzLCJleHAiOjE3NDAxNDM1OTMsImp0aSI6IjNjMjA4NTZhLThhZmMtNDA4NS1iNmFlLTUyY2MxOTk3YzkxZSJ9.AC84mVsRh9XOUzr6psINr9qayC4olQJ7fgQPXivEOOs
set-cookie: _interslice_session=uLONDZUmmnn4zyj8VnaGIpReJntWoF7V18Goxf2TqZBbrEXZoBGJCilaqdaV8dMMXJtEBkTJSI5T%2FwxZGr%2BL4kZW8JpsW4BkJKIuXwUDsOlIJXzE0xhYGnerSoymjkGn7qaxZ0qvW6lAjSwptsW75umTNw3yRg1Wvd6Xbc3IN1EpWoKlo%2Fl%2Be8LVyO%2B6rUCxdJ2wLQUj0xy2c977xWDJCbdOez5Ar9EalyKs4mS9iphFsUqquhCUJW%2BuPS1%2BxtqAwiTpgaOEggYSbCrOUYC%2BXgIHvWpz2UcLV7jjXFshHg%3D%3D--6XOq7cLWFsEOdQsY--oRlm2o%2BVZnLuGe7aB3bn%2FA%3D%3D; path=/; httponly; SameSite=Lax
etag: W/"13b9a1d3f1a9656a0d0b62bbb02f21a7"
cache-control: max-age=0, private, must-revalidate
x-request-id: 218e4ed8-f6f0-4c72-9106-b51349939889
x-runtime: 0.010821
content-length: 179

Body

{
  "user": {
    "id": 1817,
    "email": "ron.heaney+driver@example.com",
    "first_name": "Ron",
    "last_name": "Heaney",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "585113",
    "role": "driver"
  }
}