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/{developerEmail}/apps/{app}/keys/{key}

Authorization requires the following IAM permission on the specified resource name:

  • apigee.appkeys.manage

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