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.eyJzdWIiOiIxODg1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDgwLCJleHAiOjE3NjM1NDI0ODAsImp0aSI6IjY2NTgwNzI2LTU4OGItNDBlYy1hMjhjLTZmOTM0ODFhZmY3MiJ9.mtUQFmTSCj1K5zFSf9zm6tbTe6riaUEONak1At-Qh8Q
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=l72kp6jwSiFyCSg2y3ohord5LjKkizFuRFjtBVYF2OJMCEGGsn6bq45%2FufqcrVDJscHnPhUHHSNJ6QoLyVFCP7u3kyqvAAZAhVAdykj3qOTtJMYEyTX%2B3%2F00RPrqSSkmnk743%2FsZZnnpCJ0m6%2FP%2BOZooDNsn5Nwwj78jfehWp%2BgvK4HpcpVb64x38HHf%2F2w7a8IL0viF5v9U6%2BFruimi7PtXcKc26d%2BxivfjsTCVWXKKqml0f38RNp7qvY49vOOO%2FDKjLfa3GC5ClqryGeKI%2Bla749h3ckc0EgBcqCDGeQ%3D%3D--x4yRFhCLijxgpcEB--7f16CUFHU14u8WMXaDIdfg%3D%3D; path=/; httponly; samesite=lax
etag: W/"895cee19c7007757901da7c7ef536324"
cache-control: max-age=0, private, must-revalidate
x-request-id: e48fd83e-2713-4508-ae67-deffd380289d
x-runtime: 0.011190
content-length: 225

Body

{
  "user": {
    "id": 1885,
    "company": null,
    "contact_phone_number": null,
    "email": "manual.swift+operator@example.com",
    "first_name": "Manual",
    "job_position": null,
    "last_name": "Swift",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}