Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.consentStores.consents.patch
Updates the latest revision of the specified Consent by committing a new revision with the changes. A FAILED_PRECONDITION error occurs if the latest revision of the specified Consent is in the REJECTED or REVOKED state.
Identifier. Resource name of the Consent, of the form projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/consents/{consent_id}. Cannot be changed after creation.
[[["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-07-23 UTC."],[[["\u003cp\u003eThis webpage documents the \u003ccode\u003eprojects.locations.datasets.consentStores.consents.patch\u003c/code\u003e method, used to update a Consent resource within the Google Cloud Healthcare API.\u003c/p\u003e\n"],["\u003cp\u003eThe method commits a new revision to an existing Consent, updating its properties, but it will fail if the Consent's latest revision is \u003ccode\u003eREJECTED\u003c/code\u003e or \u003ccode\u003eREVOKED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe resource name of the Consent is specified in the URL's path parameters, while the fields to be updated are specified by the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter.\u003c/p\u003e\n"],["\u003cp\u003eOnly \u003ccode\u003euserId\u003c/code\u003e, \u003ccode\u003epolicies\u003c/code\u003e, \u003ccode\u003econsentArtifact\u003c/code\u003e, and \u003ccode\u003emetadata\u003c/code\u003e fields can be updated, and the request body must include an instance of the \u003ccode\u003eConsent\u003c/code\u003e object with the new information.\u003c/p\u003e\n"],["\u003cp\u003eSuccessfull responses return an instance of the \u003ccode\u003eConsent\u003c/code\u003e resource, and access requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: consents.patch\n\n**Full name**: projects.locations.datasets.consentStores.consents.patch\n\nUpdates the latest revision of the specified [Consent](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.consents#Consent) by committing a new revision with the changes. A [FAILED_PRECONDITION](/healthcare-api/docs/reference/rest/Shared.Types/Code#ENUM_VALUES.FAILED_PRECONDITION) error occurs if the latest revision of the specified Consent is in the `REJECTED` or `REVOKED` state.\n\n### HTTP request\n\n`PATCH https://healthcare.googleapis.com/v1/{consent.name=projects/*/locations/*/datasets/*/consentStores/*/consents/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Consent](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.consents#Consent).\n\n### Response body\n\nIf successful, the response body contains an instance of [Consent](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.consents#Consent).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-healthcare`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]