Users
Revoke an API key
- NOT_FOUND when the caller has no key with that resource name.
Scope: apikey:write
Authorization
bearerAuth AuthorizationBearer <token>
An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
user*string
The user id.
apiKey*string
The apiKey id.
Response Body
application/json
curl -X POST "https://example.com/v1/users/string/apiKeys/string/revoke"{ "api_key": { "id": "string", "name": "string", "display_name": "string", "resource_name": "string", "owner_id": "string", "scopes": [ "string" ], "expires_at": "2023-01-15T01:30:15.01Z", "status": "API_KEY_STATUS_UNSPECIFIED", "last_used_at": "2023-01-15T01:30:15.01Z", "revoked_at": "2023-01-15T01:30:15.01Z", "etag": "string", "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z", "updated_at": "2023-01-15T01:30:15.01Z" }}Rename an API key POST
- ALREADY_EXISTS when another of the caller's active, unexpired keys has the new name. - ABORTED when `etag` is set and the key changed since it was read. Scope: `apikey:write`
Update an API key PATCH
- INVALID_ARGUMENT when the mask names a field that can't be updated. - FAILED_PRECONDITION when the key is revoked. - ABORTED when `etag` is set and the key changed since it was read. Scope: `apikey:write`