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.eyJzdWIiOiIxODc1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTU1LCJleHAiOjE3NDUwNTY5NTUsImp0aSI6IjUxNDhlOGJmLTA5YjUtNGNkOS05MWI5LTMxN2Q2ZDZkNWRiOCJ9.7oJpF-zPpGL0gHnoIx8639GqsQT7SRYFuKjVFIXsw0A
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=zhL6mmQ2pzcgAirbUh20P6UlwclCuDkwQ5sSmGeldbkQLxV8D7mLtLegQewTYfyLPkStAcgt50ljSchI9u%2BQpk%2ByN7IMB2Sw%2F4%2BXBnIR%2Fffv%2FOecnwONaYPaPh3iUKZDSG13nLAz6iTTWUXjv8gwYmt%2BqNKJmi0ZlmgBvKq6wWxNSWbW4avp7LmAf4esXGHFzvgtz21Wt19RP9mEYEVNK0tB6vYGCb98td4BxA0es0kvgbOJ7Ao%2BH0en9dw8cQNFbtNdiyJ5k%2F6XIDB68DYnDsnzn06g3Obab%2B8jl%2FkxHg%3D%3D--Gv88iD2HSFDHTCmL--%2F91AQJTyCn7JIh4w5cSOtA%3D%3D; path=/; httponly; SameSite=Lax
etag: W/"bae957604bbc41b341c3f75aa95286a1"
cache-control: max-age=0, private, must-revalidate
x-request-id: 88d566a8-ebc9-4794-947f-8179e6fc4a1c
x-runtime: 0.011748
content-length: 225

Body

{
  "user": {
    "id": 1875,
    "company": null,
    "contact_phone_number": null,
    "email": "coreen.o'kon+operator@example.com",
    "first_name": "Coreen",
    "job_position": null,
    "last_name": "O'Kon",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}