Skip to content

Update Profile

PATCH
/api/auth/profile
curl --request PATCH \
--url https://example.com/api/auth/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "first_name": "example", "last_name": "example", "username": "example", "avatar_url": "example", "job_title": "example", "timezone": "example" }'

Update the current user’s profile (name, username, avatar_url).

Media type application/json
ProfileUpdateRequest
object
first_name
Any of:
string
last_name
Any of:
string
username
Any of:
string
avatar_url
Any of:
string
job_title
Any of:
string
timezone
Any of:
string
Example generated
{
"first_name": "example",
"last_name": "example",
"username": "example",
"avatar_url": "example",
"job_title": "example",
"timezone": "example"
}

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}