Set active team
PUT
/api/user/teams/active
const url = 'https://hitkeep.com/api/user/teams/active';const options = { method: 'PUT', headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'}, body: '{"team_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
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/teams/active \ --header 'Content-Type: application/json' \ --cookie hk_token=<hk_token> \ --data '{ "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Sets the current active team context for the authenticated user.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
team_id
required
string format: uuid
Example generated
{ "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “ Responses ”Active team response
Media type application/json
object
active_team_id
string format: uuid
recent_team_ids
Array<string>
status
string
Example generated
{ "active_team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "recent_team_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "status": "example"}Access denied
Media type application/json
object
message
string
Example generated
{ "message": "example"}