---
title: "Update team API client REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Update team API client, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apiuserteamsidapi-clientsclientid/put/"
---

# Update team API client REST API

PUT

/api/user/teams/{id}/api-clients/{clientId}

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/user/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/api-clients/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';
const options = {
  method: 'PUT',
  headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'},
  body: '{"description":"example","expires_at":"2026-04-15T12:00:00Z","name":"example","revoked":true,"site_roles":[{"role":"example","site_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 http://127.0.0.1:25737/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.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

**clientId**

required

string format: uuid

## Request Bodyrequired

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

##### Examplegenerated

```
{
  "description": "example",
  "expires_at": "2026-04-15T12:00:00Z",
  "name": "example",
  "revoked": true,
  "site_roles": [
    {
      "role": "example",
      "site_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
    }
  ]
}
```

## Responses

### 200

Updated team API client

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**

Explicit site grants. Empty means the API client has no site-scoped analytics, MCP, or ingest access.

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"
}
```

[Previous Create team API client](https://hitkeep.com/api/operations/apiuserteamsidapi-clients/post/)[Next Delete team API client](https://hitkeep.com/api/operations/apiuserteamsidapi-clientsclientid/delete/)
