---
title: "Update toolkit key"
method: PATCH
path: "/toolkits/{toolkit_id}/keys/{key_id}"
tags: ["Toolkit Keys"]
---

# Update toolkit key

`PATCH /toolkits/{toolkit_id}/keys/{key_id}`

Update a key's label, IP allowlist, or revoked flag.

## Path parameters

- `toolkit_id` string, required
- `key_id` string, required

## Request body

- ToolkitKeyUpdateRequest — Update a toolkit key.
  - `allowed_ips` string[], nullable
  - `label` string, nullable
  - `revoked` boolean, nullable

## Response `200`

Successful Response

- ToolkitKeyResponse — Toolkit key response.
  - `allowed_ips` string[], nullable
  - `created_at` string, date-time, required
  - `key_id` string, required
  - `key_preview` string, required
  - `label` string, nullable
  - `last_used_at` string, date-time, nullable
  - `revoked` boolean, required
  - `toolkit_id` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `503` — Service Unavailable

## Changes

- **2026-07-01** `d65fcba0d25a` — 3 breaking, 2 warning, 28 info
  - response property `created_at` list-of-types was widened by adding types `string` to media type `application/json` of response `200`
  - the `detail` response's property type/format changed from `array`/`` to `string`/`` for status `422`
  - removed the required property `id` from the response with the `200` status
  - removed the optional property `name` from the response with the `200` status
  - …29 more
- **2026-04-13** `76e8f6063728` — 10 breaking, 9 warning, 15 info
  - media type `application/problem+json` was changed to a more general media type `application/json` for the response status `422`
  - the response property `created_at` became optional for the status `200`
  - the response property `detail` became optional for the status `422`
  - the response property `revoked` became optional for the status `200`
  - …30 more

[Change history](https://skmtc.dev/jentic/apis/jentic-control-plane-api/changes/toolkits/:toolkit_id/keys/:key_id/patch.md)

---

[API](https://skmtc.dev/jentic/apis/jentic-control-plane-api.md) · [All operations](https://skmtc.dev/jentic/apis/jentic-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jentic/jentic-control-plane-api/revisions/dceddff07ff7/schema)
