> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/002_ten_dlc/003__update_api_key.md).

# Update 10DLC Api Key

GraphQL endpoint: `/company`

Updates the name/label of a 10DLC API key owned by the company. Only keys owned by the company can be updated.

## Query

```graphql
mutation ($id: String!, $name: String!) {
  updateTenDlcApiKey(id: $id, name: $name) {
    id
    name
    apiKeyId
    apiKeyType
    companyId
    insertedAt
    updatedAt
  }
}

```

## Variables

```json
{
  "id": "00000000-0000-4000-8000-000000000002",
  "name": "New Name"
}
```

## Response

```json
{
  "data": {
    "updateTenDlcApiKey": {
      "apiKeyId": "test_key_KXHSFCYQILWIZTJK",
      "apiKeyType": "OWNED",
      "companyId": "00000000-0000-4000-8000-000000000001",
      "id": "00000000-0000-4000-8000-000000000002",
      "insertedAt": "2026-01-15T09:00:00",
      "name": "New Name",
      "updatedAt": "2026-01-15T09:00:00"
    }
  }
}
```
