Approves or revokes the consumer key for an API product. After a consumer key is approved, the app can use it to access APIs.
A consumer key that is revoked or pending cannot be used to access an API. Any access tokens associated with a revoked consumer key will remain active. However, Apigee checks the status of the consumer key and if set to revoked will not allow access to the API.
HTTP request
POST https://apigee.googleapis.com/v1/{name=organizations/*/appgroups/*/apps/*/keys/*/apiproducts/*}
Required. Name of the API product in the developer app key in the following format: organizations/{org}/appgroups/{app_group_name}/apps/{app}/keys/{key}/apiproducts/{apiproduct}
Authorization requires the following IAM permission on the specified resource name:
apigee.appkeys.manage
Query parameters
Parameters
action
string
Approve or revoke the consumer key by setting this value to approve or revoke respectively. The Content-Type header, if set, must be set to application/octet-stream, with empty body.
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-04 UTC."],[[["This endpoint approves or revokes a consumer key for an API product, allowing or denying API access respectively."],["The `action` query parameter determines whether to `approve` or `revoke` the consumer key."],["The HTTP request is a `POST` to a specific URL that includes path parameters for the organization, app group, app, key, and API product."],["The request body must be empty, and if the operation is successful, the response will be an empty JSON object."],["Authorization to use this endpoint requires the `apigee.appkeys.manage` IAM permission and the `https://www.googleapis.com/auth/cloud-platform` OAuth scope."]]],[]]