Google is committed to advancing racial equity for Black communities. See how.

Method: organizations.developers.apps.keys.replaceDeveloperAppKey

Updates the scope of an app.

This API replaces the existing scopes with those specified in the request. Include or exclude any existing scopes that you want to retain or delete, respectively. The specified scopes must already be defined for the API products associated with the app.

This API sets the scopes element under the apiProducts element in the attributes of the app.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Name of the developer app key. Use the following structure in your request: organizations/{org}/developers/{developer_email}/apps/{app}/keys/{key}

Request body

The request body contains an instance of DeveloperAppKey.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

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

Try it!