Send feedback
Method: consents.patch
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 google.rpc.Code.FAILED_PRECONDITION
error occurs if the latest revision of the specified Consent is in the REJECTED
or REVOKED
state.
HTTP request
PATCH https://healthcare.googleapis.com/v1/{consent.name=projects/*/locations/*/datasets/*/consentStores/*/consents/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters
consent.name
string
Resource name of the Consent, of the form projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/consents/{consentId}
. Cannot be changed after creation.
Query parameters
Parameters
updateMask
string(FieldMask
format)
Required. The update mask to apply to the resource. For the FieldMask
definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask . Only the userId
, policies
, consentArtifact
, and metadata
fields can be updated.
This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo"
.
Request body
The request body contains an instance of Consent
.
Response body
If successful, the response body contains an instance of Consent
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-healthcare
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-31 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?