V1 / Tokens / Api-keys
Update an API key
Rename, change expiry, or adjust scopes of an API key. Session-authenticated (dashboard login; owner/admin).
V1 / Tokens / Api-keys
Update an API key
Rename, change expiry, or adjust scopes of an API key. Session-authenticated (dashboard login; owner/admin).
PATCH
/api/v1/tokens/api-keys/:idQuery / Path parameters
| Name | In | Required | Description |
|---|---|---|---|
| id | path | Yes | Token ID |
Responses
200
JSON { doc } — the updated key
404
Token not found in your space
Request
curl -X PATCH "https://bannx.com/api/v1/tokens/api-keys/:id" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{}'Response
// JSON { doc } — the updated key
{
"success": true,
"data": { ... }
}