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": "8J2BAgN3a4igHPfd4viA",
    "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.eyJzdWIiOiIxODc5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjI5LCJleHAiOjE3NTU4NTgyMjksImp0aSI6IjhkNjBiODMxLTJmNDEtNGNjZC1iZTQ5LWI2YTY5MGM4M2UzNCJ9.eGhQrcE_y5K_ti-q9V6bTjzp1Cg9K5b5tYcEIa3w_8c
set-cookie: _interslice_session=EBUEmScksG7APSW%2FXRJ744fwb3CBjqaJ%2FgFUCXmcDTWrQS%2FWo2xru9QjmKW7ni8OG34mMd%2BUZ7XT%2BHho4yYNlN%2BZLWVE4uiITZdWwY%2B8X0F7Xx5l1x6ufMdVgO3y3AMZnv4vQMppIzJPsSszCLkPqRjpblg7ETacUpykEa0IWkecpC4c2WbHf8winX2BzePuPSHN9xmgHy%2Bed80oYvyizLeBDR29LMBxDXDXWVUIxJsN729MzBOgYzFVnqqq7DMWpbtrgP0FQ25wgkJkMtlIAd1aS4B6F9HV1OoK8y9MDQ%3D%3D--ITPaQAhMXFjuy5GS--GfVG7QJDwXawLmkQ1GDZog%3D%3D; path=/; httponly; samesite=lax
etag: W/"424ff4ad5810c1a9be57245c353b98c7"
cache-control: max-age=0, private, must-revalidate
x-request-id: e08fcedd-8b1d-4cae-b2c3-7181d16aac66
x-runtime: 0.011661
content-length: 193

Body

{
  "user": {
    "id": 1879,
    "email": "dallas.jakubowski+driver@example.com",
    "first_name": "Dallas",
    "last_name": "Jakubowski",
    "phone_number": null,
    "profile_id": null,
    "referral_code": "938959",
    "role": "driver"
  }
}