Skip to content
Start in Cloud

Update profile

PUT
/api/user/profile
curl --request PUT \
--url https://hitkeep.com/api/user/profile \
--header 'Content-Type: application/json' \
--cookie hk_token=<hk_token> \
--data '{ "email": "hello@example.com", "given_name": "example", "last_name": "example" }'

Updates authenticated user profile details.

Media type application/json
object
email
required
string format: email
given_name
string
last_name
string
Example generated
{
"email": "hello@example.com",
"given_name": "example",
"last_name": "example"
}

Updated profile

Media type application/json
object
avatar_url
string
display_name
string
email
string format: email
given_name
string
id
string format: uuid
last_name
string
Example generated
{
"avatar_url": "example",
"display_name": "example",
"email": "hello@example.com",
"given_name": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"last_name": "example"
}

Invalid request

Media type application/json
object
message
string
Example generated
{
"message": "example"
}

User not found

Media type application/json
object
message
string
Example generated
{
"message": "example"
}

Email already exists

Media type application/json
object
message
string
Example generated
{
"message": "example"
}