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.eyJzdWIiOiIxODQ0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTk1LCJleHAiOjE3NDAxNDM1OTUsImp0aSI6IjZjYzkwMGNiLTBkZGYtNDBiMS05YzRkLWMwN2M4MGRlOWI4MiJ9.vWNcx0ggHhTO3XjZX3znuxidE9zU-lugYOyepoCMa7s
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=8y14sThnwr7DDTjvjSy6rcP%2BLnT7UtZiP0JcMmCxzyE0xD%2FhqGkka61rl564GNj2v0sJLObKezCGv2UbT%2Fh7cXZ%2FogK3JsbRheW7D%2BnH80ERsTO0hPp2HvaSDGMNbzwz4mtKKA6ZfvcjP8IZaKxX61xNG71gKF0LEtyDfhtM8p%2FINMUE905eg9Qcj%2BJ4II8O7mBzHhuXHyp0%2BZCOr%2BGX4keYeNAX8WNoTBhHlQQDsKJ%2FjhIOxjI%2FQjL1%2Fj2QtcdnAAo%2FEOIcn%2BK%2BuQ5qXJ3byPfIC9%2BiUzi399cUyJmjVA%3D%3D--8elJ%2Fq2ZgxG5e9AN--HR4o0u4ezIhkoTeX5ROTXA%3D%3D; path=/; httponly; SameSite=Lax
etag: W/"31a6a2189b100b19cce6edaf1a1df1a9"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7f8aa67c-f090-4401-9dda-ae05da609d8e
x-runtime: 0.011534
content-length: 237

Body

{
  "user": {
    "id": 1844,
    "company": null,
    "contact_phone_number": null,
    "email": "jonathon.aufderhar+operator@example.com",
    "first_name": "Jonathon",
    "job_position": null,
    "last_name": "Aufderhar",
    "phone_number": null,
    "profile_id": null,
    "role": "operator"
  }
}