Update API key
API Keys
Update API key
Update an existing API key.
Supports renaming and replacing the workspace scope:
- Pass
scopeswith a non-empty list of{workspace_id, permission}entries to replace the full scope set. Existing scope rows not in the new list are dropped. - Pass
scopes: []to unscope the key entirely. - The permission ceiling on each scoped workspace is re-validated against your current role there.
PATCH
Update API key
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.