API Keys

Update an existing API key.

Supports renaming and replacing the workspace scope:

  • Pass scopes with 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/api/v3/keys/{id}

Request

  • Base URL
    https://api.lighton.ai
  • URL
    https://api.lighton.ai/api/v3/keys/{id}
  • Auth
    HTTP bearer

Path parameters

idstring required

Request body

namestring

Response

The updated API key.

idstring required
namestring required
prefixstring required
created_atstring date-time required
expires_atstring date-time nullable required

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status