Skip to main content
POST
/
auth
/
change-password
Change Password
curl --request POST \
  --url https://api.sunbird.ai/auth/change-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "old_password": "<string>",
  "new_password": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
old_password
string
required
new_password
string
required

Response

Successful Response