Method: projects.locations.consumerEnforcementActions.create

Creates a ConsumerEnforcementAction resource.

HTTP request

POST https://commerceproducer.googleapis.com/v1beta/{parent=projects/*/locations/*}/consumerEnforcementActions

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent project and location resource name.

Format: projects/{project}/locations/{location}

Query parameters

Parameters
consumerEnforcementActionId

string

Optional. The ID to use for the ConsumerEnforcementAction, which will become the final component of the resource's resource name.

If provided, this value must contain 1-63 characters, start with a lowercase letter, contain only lowercase letters, numbers, and hyphens, and end with a lowercase letter or number (matching [a-z]([-a-z0-9]*[a-z0-9])?).

Request body

The request body contains an instance of ConsumerEnforcementAction.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.