Method: organizations.consumers.apps.keys.approveRevokeConsumerAppKey

Approves or revokes an API key for an app.

HTTP request

POST https://apigee.googleapis.com/v1/{name=organizations/*/consumers/apps/*/keys/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Name of the API key. Use the following structure in your request: organizations/{org}/consumers/apps/{app}/keys/{key}

Request body

The request body contains an instance of KeyStatusChange.

Response body

If successful, the response body contains an instance of ApiResponseWrapper.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

KeyStatusChange

JSON representation
{
  "action": enum (Action)
}
Fields
action

enum (Action)

Approve or revoke API key.

Action

Enums
approve Approve API key.
revoke Revoke API key.