Chahge password for loggedin user.
Users
PATCH change password
Endpoint
PATCH /api/v1/users
Parameters
| Name | Description |
|---|---|
| user[password] required | New password |
| user[password_confirmation] required | Password confirmation |
| user[current_password] required | Current password |
Request
Route
PATCH /api/v1/users
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxOTI4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzMDIyMjM3LCJleHAiOjE3NjU2MTQyMzcsImp0aSI6ImI4ODQ2NmRkLTk2NjEtNDk1Zi04YjZkLWU0ZGE1ZTJiODc1YiJ9.OBLgKKYuikGGlq8d0YKy8jURgvxRy0--ASjr3SUiPfU
Host: example.org
Cookie:
Body
{
"user": {
"password": "new_valiD_passw0rd!",
"password_confirmation": "new_valiD_passw0rd!",
"current_password": "valiD_passw0rd!"
}
}
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
set-cookie: _interslice_session=Lc9kZTPamQlaCvQSkbV1PsGfgmUSlzFww4A7lPAXYm8FlKVHksYzpU3Dj59bKh4FS7fNspLdNEkXr0AKZ3WtG3i9e0Hffc5BzRMxV71S7tcO%2BcZsYb1Yoqc1brl3DUCuso2F9SMn1duR5HT%2BiPh4jxHOpR7qYimEvw7ioHRflqEItK3BqoMCyV7p%2BgRgWHBVqdSBfF2FUEZV1X2UtfQCalMO1G6nThc%2FU0P5ypWLh1dg75MNRIesG2byJeeqjCYF75AZnA%2BkbqVrTYQW7yaQgWUbhpWf6EY1HO8OnHi6AA%3D%3D--d7CpFB%2FNx%2F%2BtCW92--AmBF96hstHAYP9t0Ysm5lg%3D%3D; path=/; httponly; samesite=lax
etag: W/"f9699be50275614038c7de653bfb2669"
cache-control: max-age=0, private, must-revalidate
x-request-id: faaa5bcb-425f-44bb-a290-8972fc077f49
x-runtime: 0.010610
content-length: 257
Body
{
"user": {
"id": 1928,
"company": null,
"contact_phone_number": null,
"email": "kasey.gorczany+operator@example.com",
"financial_company_id": null,
"first_name": "Kasey",
"job_position": null,
"last_name": "Gorczany",
"phone_number": null,
"profile_id": null,
"role": "operator"
}
}