---
title: "POST /v1/{+consentStore}:checkDataAccess"
method: POST
path: "/v1/{+consentStore}:checkDataAccess"
tags: ["projects"]
---

# POST /v1/{+consentStore}:checkDataAccess

`POST /v1/{+consentStore}:checkDataAccess`

Checks if a particular data_id of a User data mapping in the specified consent store is consented for the specified use.

## Path parameters

- `consentStore` string, required

## Request body

- CheckDataAccessRequest — Checks if a particular data_id of a User data mapping in the given consent store is consented for a given use.
  - `dataId` string — Required. The unique identifier of the resource to check access for. This identifier must correspond to a User data mapping in the given consent store.
  - `requestAttributes` object — The values of request attributes associated with this access request.
  - `consentList` ConsentList — List of resource names of Consent resources.
    - `consents` string[] — The resource names of the Consents to evaluate against, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`.
  - `responseView` 'RESPONSE_VIEW_UNSPECIFIED' | 'BASIC' | 'FULL' — Optional. The view for CheckDataAccessResponse. If unspecified, defaults to `BASIC` and returns `consented` as `TRUE` or `FALSE`.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/healthcare.md) · [All operations](https://skmtc.net/google/apis/healthcare/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/healthcare/versions/cdec6fe2315f/schema)
