Skip to main content
POST
/
change-password
cURL
curl --request POST \
  --url https://sandbox.x.architect.co/api/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "password": "<string>",
  "totp": "<string>",
  "username": "<string>"
}'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
password
string
required
username
string
required
totp
string | null

Optional 2FA code, if 2FA is enabled/required for the user.

Response

Password changed successfully

message
string
required