PATCH /projects/{project_id}/keys/{key_id}
Change a key's scopes (same identifier, same secret), or rename it (body {name} only)
Console session only (signed-in console).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_id | path | string · required | |
key_id | path | string · required |
Request body
application/json
Responses
| Status | Description | Body |
|---|---|---|
200 | key | |
409 | key_revoked | |
422 | scopes_invalid, scope_not_available, api_key_name_invalid | |
503 | api_key_name_unavailable |
Examples
curl
curl -X PATCH "$GALON_API_BASE/projects/<project_id>/keys/<key_id>" \
-H "Authorization: Bearer $GALON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"scopes": ["string"]}'