Users

Chahge password for loggedin user.

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.eyJzdWIiOiIxOTA2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzU4MDEyNTE1LCJleHAiOjE3NjA2MDQ1MTUsImp0aSI6IjgwOGNjZWRhLTE4OTUtNDUxOS1iMzViLWRkZDBjNGIyZjUwYiJ9.t-X19P9B4ycVTLOG-dFDvKTLrrd4omZO5uPCTn7hwNc
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=x%2FDDQEj1JxYdYA6Yzs30mvV7pE7LLE8wpq7w1MMgUzDGnIYXNp7ypQWfpHv%2BhayWeoRBCjmq1BsBo8Cb8IOays4KUJRPIBgylyxgYWFVpHcLnqZrZSN24Z2c9vogQvOJpsA0sPDWqLYJGBwskiSU8YGUBvlr2%2BL9Mj3ZYIeU1pNTqFGNqaugRTOneNozoHwT%2Bpe4uwwFPbc85Mytx48cxyCrQutZHkwZ0i5WraZlz7hJgRpYHoXekTCEjyuEKFqyVkYx1ce0h0W9VFD0gpzgt3qSb%2BGOl5eSo8AkDqjlSA%3D%3D--dWVfnLz51rdCjUue--2arroQDLODfvVjujKDy5Rg%3D%3D; path=/; httponly; samesite=lax
etag: W/"bfd4905a59eb966371768fb8449e1979"
cache-control: max-age=0, private, must-revalidate
x-request-id: 724a74fe-bea7-409f-ab49-2f7e5eac4fbd
x-runtime: 0.014846
content-length: 231

Body

{
  "user": {
    "id": 1906,
    "company": null,
    "contact_phone_number": null,
    "email": "carmelo.ruecker+operator@example.com",
    "first_name": "Carmelo",
    "job_position": null,
    "last_name": "Ruecker",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}