---
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[]

## Response `200`

Default Response

---

[API](https://skmtc.net/printhiv3d/apis/hive-api-documentation.md) · [All operations](https://skmtc.net/printhiv3d/apis/hive-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/printhiv3d/hive-api-documentation/versions/3b06bcb5f808/schema)
