Reset/update password. It changes password for user after login confirmation.
Users
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": "ouHfoTvN6xg7zx2xrnuq",
"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.eyJzdWIiOiIxODcyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTQwLCJleHAiOjE3NTExMDg1NDAsImp0aSI6ImY0ZGRkZTMxLTk2N2MtNDJhNi1hNDM3LTJmYzJmYzQ0ZTMyNCJ9.5yxsAXi4bGOMk-oB5hZyqLrGpvVkgXtvfv_QZoZtm8A
set-cookie: _interslice_session=E9u9OtjGQljq9lFT9Elepb7mgfcmL8LYebZMM22%2BhINJC4Bw%2BU30S2ynHq0XftraP96u5ZYkS4Th3AyEzpBRLOwl6wY9PPVjuGktp7fuUe3CKXTegRS9ULq9nSlYEnDo890%2BfoG0pH6g6YysAVseVa8CIr6ii8jZL%2BvOwWkXuAtKdpNbiPdiRQtUgoK%2ByNBZnxA891UHY%2FVVK85hqt2BzpKJEqUNDxeDsNnSTflu8bRoDGnPpbSgwU060hpiKRgk%2BR44johd79nhj09OKEbSvCtExqit5AQZ7Gdhwny9VQ%3D%3D--Ycy3sZCG85vELsq0--Ix%2BjnoS674sj0QNT4FQimQ%3D%3D; path=/; httponly; SameSite=Lax
etag: W/"0e1c3d6cb89d2574ea3bee794e647cc4"
cache-control: max-age=0, private, must-revalidate
x-request-id: 52b2a147-7804-4087-9b22-770a68760139
x-runtime: 0.015075
content-length: 185
Body
{
"user": {
"id": 1872,
"email": "lemuel.bednar+driver@example.com",
"first_name": "Lemuel",
"last_name": "Bednar",
"phone_number": null,
"profile_id": null,
"referral_code": "456119",
"role": "driver"
}
}