[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis document describes how to update service terms for a project using the \u003ccode\u003ereportConsentChange\u003c/code\u003e method, which currently only supports accepting the latest terms.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to update terms is a POST request to a specific URL, requiring a project identifier as a path parameter in the URL to define the project resource.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be in JSON format and contain the \u003ccode\u003econsentChangeAction\u003c/code\u003e (currently only \u003ccode\u003eACCEPT\u003c/code\u003e is supported), the \u003ccode\u003eserviceTermId\u003c/code\u003e (e.g., \u003ccode\u003eGA_DATA_USE_TERMS\u003c/code\u003e), and the corresponding \u003ccode\u003eserviceTermVersion\u003c/code\u003e (e.g., \u003ccode\u003e2022-11-23\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an instance of a Project, and to be authorized, they require the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003ediscoveryengine.projects.reportConsentChange\u003c/code\u003e on the project resource.\u003c/p\u003e\n"],["\u003cp\u003eThe only supported \u003ccode\u003eConsentChangeAction\u003c/code\u003e is \u003ccode\u003eACCEPT\u003c/code\u003e, which signifies user acceptance of the service terms, while \u003ccode\u003eCONSENT_CHANGE_ACTION_UNSPECIFIED\u003c/code\u003e is considered invalid.\u003c/p\u003e\n"]]],[],null,["# Method: projects.reportConsentChange\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [ConsentChangeAction](#ConsentChangeAction)\n\nUpdates service terms for this project.\n\nThis method can be used to retroactively accept the latest terms.\n\nTerms available for update:\n\n- [Terms for data use](https://cloud.google.com/retail/data-use-terms)\n\n### HTTP request\n\n`POST https://discoveryengine.googleapis.com/v1alpha/{project=projects/*}:reportConsentChange`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Project](/generative-ai-app-builder/docs/reference/rest/v1alpha/projects#Project).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `project` resource:\n\n- `discoveryengine.projects.reportConsentChange`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nConsentChangeAction\n-------------------\n\nType of consent acknowledgement (accept / reject).\n\nAt this moment, only `ACCEPT` action is supported."]]