Archive team (admin)
POST
/api/admin/teams/{id}/archive
const url = 'https://hitkeep.com/api/admin/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/archive';const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://hitkeep.com/api/admin/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/archive \ --cookie hk_token=<hk_token>Archives a non-default team from the instance admin surface after its sites have been moved or deleted.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Responses
Section titled “ Responses ”Status
Media type application/json
object
message
string
status
string
Example generated
{ "message": "example", "status": "example"}The default team cannot be archived, or the team is not found or already archived
Media type application/json
object
message
string
Example generated
{ "message": "example"}