Update profile
PUT
/api/user/profile
const url = 'https://hitkeep.com/api/user/profile';const options = { method: 'PUT', headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","given_name":"example","last_name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” 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"}Responses
Section titled “ Responses ”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"}