DELETE
/v1/asset-bucket-access-keys/{uid}Revokes a bucket access key. The key is marked revoked immediately and drops out of
List bucket access keys. Its grant on storage is
removed by a background sync shortly afterwards. Revoking a key that is already revoked
succeeds and changes nothing.
Requires the secrets manage permission (owner, admin or developer role).
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Path parameters
uidstringRequiredThe access key's uid (not its access_key_id).
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
200
The key was revoked.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The access key does not exist in this workspace. |
Errors use the standard error format.