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": "qFqYTyUyuxjbsrtxAbrw",
"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.eyJzdWIiOiIxOTA1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDE0LCJleHAiOjE3NjYyMTg0MTQsImp0aSI6IjhkZTQwNzY0LTE4ZGYtNDE5Yi05NTcyLThkMjJlMDUzODViYiJ9.cDUo4uZI14x6kXYxwtvmN7R8O6DMqmXniAZD3vSqNX4
set-cookie: _interslice_session=bSK3qa%2BCwfrCaZBb2IZoMh5AYOG2wWuwwQElOJ85xPzmfv7XlZaP8gj2s%2FSQ0SpmR%2FWiQqRQkVIEgA2c830Z7q5k7UYrAkAhhp15nXPFh2lW47k1M7KoJAM1AcARgdAVWUCKFfdFnsVQWdu1ZWtmutniC3ab2rJ%2BiHDwyJjj3mDtykuihEwkzKxOoTMd3OlO%2BVCOg8QG%2FXCNoawM%2FjrVSJQtifX%2BF3M1is6q5%2FdFudYP0IiJx%2FzEJtngfY0Yr8y9AhN2V3aSfHfAb9hZmDV8OZIrb%2FEgq%2FjyFmXRurHNmQ%3D%3D--EjvGQxxN65segWYV--mHYS8%2FqVWNsuJozvzdfm2A%3D%3D; path=/; httponly; samesite=lax
etag: W/"f6ffd6503fe6f2687eeeb5c2fdd8039d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 427dd7f2-b1ad-4f14-891a-b65aeb147214
x-runtime: 0.014227
content-length: 217
Body
{
"user": {
"id": 1905,
"email": "faustina.murphy+driver@example.com",
"financial_company_id": null,
"first_name": "Faustina",
"last_name": "Murphy",
"phone_number": null,
"profile_id": null,
"referral_code": "339679",
"role": "driver"
}
}