Method: projects.reportConsentChange

Updates service terms for this project.

This method can be used to retroactively accept the latest terms.

Terms available for update:

HTTP request

POST https://discoveryengine.googleapis.com/v1alpha/{project=projects/*}:reportConsentChange

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Required. Full resource name of a Project, such as projects/{project_id_or_number}.

Request body

The request body contains data with the following structure:

JSON representation
{
  "consentChangeAction": enum (ConsentChangeAction),
  "serviceTermId": string,
  "serviceTermVersion": string
}
Fields
consentChangeAction

enum (ConsentChangeAction)

Required. Whether customer decides to accept or decline service term.

At this moment, only accept action is supported.

serviceTermId

string

Required. The unique identifier of the terms of service to update. Available term ids:

serviceTermVersion

string

Required. The version string of the terms of service to update.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the project resource:

  • discoveryengine.projects.reportConsentChange

For more information, see the IAM documentation.

ConsentChangeAction

Type of consent acknowledgement (accept / reject).

At this moment, only ACCEPT action is supported.

Enums
CONSENT_CHANGE_ACTION_UNSPECIFIED Invalid action, user must specify accept/decline
ACCEPT User accepts service terms.