curl --request PUT \
--url http://localhost:8000/api/v1/users/{user_id}/password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"current_password": "<string>",
"new_password": "<string>",
"new_password_confirm": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Update a user’s password.
curl --request PUT \
--url http://localhost:8000/api/v1/users/{user_id}/password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"current_password": "<string>",
"new_password": "<string>",
"new_password_confirm": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}The access token received from the authorization server in the OAuth 2.0 flow.
Successful Response