curl --request PATCH \
--url https://api.example.com/users/{id} \
--header 'Content-Type: application/json' \
--cookie fastapiusersauth= \
--data '
{
"password": "<string>",
"email": "jsmith@example.com",
"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": "jsmith@example.com",
"role": "basic",
"settings": {},
"is_active": true,
"is_superuser": false,
"is_verified": false,
"first_name": "<string>",
"last_name": "<string>"
}curl --request PATCH \
--url https://api.example.com/users/{id} \
--header 'Content-Type: application/json' \
--cookie fastapiusersauth= \
--data '
{
"password": "<string>",
"email": "jsmith@example.com",
"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": "jsmith@example.com",
"role": "basic",
"settings": {},
"is_active": true,
"is_superuser": false,
"is_verified": false,
"first_name": "<string>",
"last_name": "<string>"
}Successful Response
Was this page helpful?