Update API Key
API Keys
Update API Key
Update an API key’s name, scopes, expiry, or metadata
PATCH
Update API Key
Documentation Index
Fetch the complete documentation index at: https://docs.signa.so/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Updates an API key. The raw key value is never affected — useRotate API Key to issue new credentials. Metadata uses merge semantics (null values remove keys). Scope changes are subject to escalation prevention: you cannot grant scopes that the calling key does not already hold. System keys cannot be modified.
Requires the api-keys:manage scope.
Path Parameters
API key ID (
key_...).Request Body
New name (1-255 characters).
Replacement scope list (at least one). Subject to escalation prevention.
New expiry as an ISO 8601 timestamp, or
null to clear. Must be in the future.Metadata patch. Values may be strings or
null.Response
Returns the updated API key. Same shape asGet API Key.
Code Examples
Errors
| Status | Type | Description |
|---|---|---|
| 400 | validation_error | Empty name, invalid scope, expires_at not in the future |
| 401 | unauthorized | Missing or invalid API key |
| 403 | forbidden | API key lacks api-keys:manage, target key is a system key, or scope escalation attempted |
| 404 | not_found | API key does not exist or belongs to another org |