cURL
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>" } ] }
The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response