Method: consents.reject

Full name: projects.locations.datasets.consentStores.consents.reject

Rejects the latest revision of the specified Consent by committing a new revision with state updated to REJECTED. If the latest revision of the given consent is in the REJECTED state, no new revision is committed. A google.rpc.Code.FAILED_PRECONDITION error occurs if the latest revision of the given consent is in the ACTIVE or REVOKED state.

HTTP request

POST https://healthcare.googleapis.com/v1beta1/{name=projects/*/locations/*/datasets/*/consentStores/*/consents/*}:reject

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The resource name of the consent to reject, of the form projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/consents/{consentId}. An google.rpc.Code.INVALID_ARGUMENT error occurs if revisionId is specified in the name.

Authorization requires the following IAM permission on the specified resource name:

  • healthcare.consents.reject

Request body

The request body contains data with the following structure:

JSON representation
{
  "consentArtifact": string
}
Fields
consentArtifact

string

The resource name of the consent artifact that contains proof of the end user's rejection of the draft consent, of the form projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/consentArtifacts/{consent_artifact_id}. If the draft consent had a consent artifact, this consent artifact overwrites it.

Authorization requires the following IAM permission on the specified resource consentArtifact:

  • healthcare.consentArtifacts.get

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.