Skip to main content
PUT
/
api
/
v1
/
customer
/
profile
/
password
Update Password
curl --request PUT \
  --url https://api.example.com/api/v1/customer/profile/password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "currentPassword": "P@ssw0rd!",
  "newPassword": "N3wP@ssw0rd!"
}
'
{
  "title": "204-Password updated successfully."
}

Authorizations

Authorization
string
header
required

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

Query Parameters

fields
string

Comma-separated list of fields to include in the response. Supports dot notation for nested projection (e.g. id,name,user.email,trips.route.id). Unknown fields are silently dropped.

Body

application/json

Update password payload

currentPassword
string
required

Current password

Minimum string length: 8
Example:

"P@ssw0rd!"

newPassword
string
required

New password

Minimum string length: 8
Example:

"N3wP@ssw0rd!"

Response

Password updated successfully.