DKBSignDocs

API reference

PATCHRequires Bearer token

Change password

/api/v1/profile/{user}/update-password

Self-service. Throttled (6/min). Revokes every Sanctum token except the current session. Fields are old_password and new_password.

Path parameters

FieldTypeDescription
user
Required
stringPath parameter user.

Query parameters

This endpoint has no query parameters.

Request body

FieldTypeDescription
old_password
Required
stringCurrent password.
e.g. "P@ssw0rd!"
new_password
Required
stringNew password (same strength rules as register).
e.g. "N3w-P@ssw0rd"

Responses

StatusMeaning
200Password updated successfully
401Missing or invalid Bearer token.

Request

curl
curl -X PATCH 'https://api.dkbsigns.com/api/v1/profile/user/update-password' \
  -H 'Authorization: Bearer $DKBSIGN_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"old_password":"P@ssw0rd!","new_password":"N3w-P@ssw0rd"}'

Response 200

json
{
  "status": "success",
  "message": "Password updated successfully"
}