Skip to main content
POST
/
v1
/
auth
/
change-password
Change password
curl --request POST \
  --url http://co-mind-platform-host/v1/auth/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "currentPassword": "<string>",
  "newPassword": "<string>"
}
'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Supports two token types:

  • JWT Access Token — obtained via POST /v1/auth/login
  • Personal Access Token (PAT) — created via POST /v1/api-tokens, format: cmnd_<tokenId>.<secret>

Body

application/json
currentPassword
string<password>
required
newPassword
string<password>
required

Response

Password changed

message
string