---
title: "Update API key"
method: PATCH
path: "/v1/api-keys/{id}"
tags: ["API Keys"]
---

# Update API key

`PATCH /v1/api-keys/{id}`

Update an existing API key

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `enabled` boolean
  - `expires_at` string, date-time
  - `scopes` string[]
  - `organizationId` string, uuid

## Response `200`

Default Response

## Other responses

- `default` — Unexpected error response

## Changes

- **2026-09-18** `6fc855b04da9` — 1 info
  - added the new optional request property `organizationId`

[Change history](https://skmtc.dev/printhiv3d/apis/hive-api-documentation/changes/v1/api-keys/:id/patch.md)

---

[API](https://skmtc.dev/printhiv3d/apis/hive-api-documentation.md) · [All operations](https://skmtc.dev/printhiv3d/apis/hive-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/printhiv3d/apis/hive-api-documentation/revisions/6f1a23af942d?raw)
