Skip to main content
PUT
/
api
/
v1
/
users
/
{user_id}
/
email
Update User Email
curl --request PUT \
  --url http://localhost:8000/api/v1/users/{user_id}/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]"
}
'
{
  "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 email.

email
string<email>
required

Response

Successful Response