---
title: "Update an API Key"
method: PATCH
path: "/2/teams/{teamSlug}/api-keys/{ID}"
tags: ["Key Management"]
---

# Update an API Key

`PATCH /2/teams/{teamSlug}/api-keys/{ID}`

Updates an API Key. The expected attributes depend on the key type:
- **Ingest Keys** (prefix `hcxik_`): Support `name` and `enabled` attributes
- **Configuration Keys** (prefix `hcxlk_`): Support `name`, `enabled`, and `permissions` attributes

## Response `200`

Success

## Other responses

- `400` — The provided request body was invalid.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `413` — The provided request body was over the maximum allowed size.
- `415` — The provided request body had an invalid Content-Type.
- `422` — Validation Failed
- `429` — Rate Limit Exceeded
- `500` — InternalError

---

[API](https://skmtc.net/honeycomb/apis/honeycomb-api.md) · [All operations](https://skmtc.net/honeycomb/apis/honeycomb-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/honeycomb/honeycomb-api/revisions/117619fac2a5/schema)
