Skip to content
Start in Cloud

Leave team REST API

DELETE
/api/user/teams/{id}/leave
curl --request DELETE \
--url https://app.hitkeep.com/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/leave \
--cookie hk_token=<hk_token>

Removes the authenticated user from the specified team and returns the new active team.

id
required
string format: uuid

Leave team response

Media typeapplication/json
object
active_team_id
string format: uuid
recent_team_ids
Array<string>
status
string
Examplegenerated
{
"active_team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"recent_team_ids": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"status": "example"
}

Cannot leave your only team or last owner

Media typeapplication/json
object
message
string
Examplegenerated
{
"message": "example"
}

Access denied

Media typeapplication/json
object
message
string
Examplegenerated
{
"message": "example"
}