PATCH
/
users
/
change-password
curl --request PATCH \
  --url https://scribe-api.puppilot.co/users/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Version: <x-api-version>' \
  --data '{
  "old_password": "<string>",
  "new_password": "<string>"
}'
{
  "message": "Password changed successfully"
}

Overview

Allows an authenticated user to update their current password. The user must provide their current password for verification before setting a new password.

Request Body

  • old_password (string) - The user’s existing password for authentication.
  • new-password (string) - The user’s new desired password.

Example Request

{
  "old_password": "0ldP@ssw0rd!",
  "new_password": "N3wP@ssw0rd!"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-Version
string
required

API versioning is required. Include the header X-API-Version with current version value in all requests.

Example:

"v1"

Body

application/json
old_password
string
required
new_password
string
required

Response

200 - application/json
message
string
Example:

"Password changed successfully"