Skip to main content
PATCH
/
users
/
{id}
Users:Patch User
curl --request PATCH \
  --url https://api.example.com/users/{id} \
  --header 'Content-Type: application/json' \
  --cookie fastapiusersauth= \
  --data '
{
  "password": "<string>",
  "email": "[email protected]",
  "is_active": true,
  "is_superuser": true,
  "is_verified": true,
  "role": "basic",
  "first_name": "<string>",
  "last_name": "<string>",
  "settings": {}
}
'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"role": "basic",
"settings": {},
"is_active": true,
"is_superuser": false,
"is_verified": false,
"first_name": "<string>",
"last_name": "<string>"
}

Authorizations

fastapiusersauth
string
cookie
required

Path Parameters

id
string
required

Body

application/json
password
string | null
email
string<email> | null
is_active
boolean | null
is_superuser
boolean | null
is_verified
boolean | null
role
enum<string> | null
Available options:
basic,
admin
first_name
string | null
last_name
string | null
settings
Settings · object

Response

Successful Response

id
string<uuid>
required
email
string<email>
required
role
enum<string>
required
Available options:
basic,
admin
settings
Settings · object
required
is_active
boolean
default:true
is_superuser
boolean
default:false
is_verified
boolean
default:false
first_name
string | null
last_name
string | null