Method: organizations.apiproducts.attributes

Updates or creates API product attributes. This API replaces the current list of attributes with the attributes specified in the request body. In this way, you can update existing attributes, add new attributes, or delete existing attributes by omitting them from the request body.

Note: OAuth access tokens and Key Management Service (KMS) entities (apps, developers, and API products) are cached for 180 seconds (current default). Any custom attributes associated with entities also get cached for at least 180 seconds after entity is accessed during runtime. In this case, the ExpiresIn element on the OAuthV2 policy won't be able to expire an access token in less than 180 seconds.

HTTP request

POST https://apigee.googleapis.com/v1/{name=organizations/*/apiproducts/*}/attributes

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Name of the API product. Use the following structure in your request: organizations/{org}/apiproducts/{apiproduct}

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

  • apigee.apiproductattributes.createOrUpdateAll

Request body

The request body contains an instance of Attributes.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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