Skip to main content
PUT
/
api
/
v1
/
users
/
{user_id}
/
password
Update User 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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
integer
required

Body

application/json

Schema for updating a user's password.

current_password
string
required
new_password
string
required
Minimum string length: 8
new_password_confirm
string
required

Response

Successful Response