Skip to content
Start in Cloud

Update team API client

PUT
/api/user/teams/{id}/api-clients/{clientId}
curl --request PUT \
--url https://hitkeep.com/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/api-clients/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--cookie hk_token=<hk_token> \
--data '{ "description": "example", "expires_at": "2026-04-15T12:00:00Z", "name": "example", "revoked": true, "site_roles": [ { "role": "example", "site_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ] }'

Updates a team-owned API client.

id
required
string format: uuid
clientId
required
string format: uuid
Media type application/json
object
description
string
expires_at
string format: date-time
name
required
string
revoked
boolean
site_roles
Array<object>
object
role
string
site_id
string format: uuid
Example generated
{
"description": "example",
"expires_at": "2026-04-15T12:00:00Z",
"name": "example",
"revoked": true,
"site_roles": [
{
"role": "example",
"site_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
]
}

Updated team API client

Media type application/json
object
created_at
string format: date-time
description
string
expires_at
string format: date-time
id
string format: uuid
instance_role
string
last_used_at
string format: date-time
name
string
owner_type
string
Allowed values: personal team
revoked_at
string format: date-time
site_roles
Array<object>
object
role
string
site_id
string format: uuid
tenant_id
string format: uuid
updated_at
string format: date-time
user_id
string format: uuid
Example
{
"owner_type": "personal"
}