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

# POST /v1/{+parent}/datasets

`POST /v1/{+parent}/datasets`

Creates a new health dataset. Results are returned through the Operation interface which returns either an `Operation.response` which contains a Dataset or `Operation.error`. The metadata field type is OperationMetadata.

## Path parameters

- `parent` string, required

## Query parameters

- `datasetId` string

## Request body

- Dataset — A message representing a health dataset. A health dataset represents a collection of healthcare data pertaining to one or more patients. This may include multiple modalities of healthcare data, such as electronic medical records or medical imaging data.
  - `encryptionSpec` EncryptionSpec — Represents a customer-managed encryption key spec that can be applied to a resource.
    - `kmsKeyName` string — Required. The resource name of customer-managed encryption key that is used to secure a resource and its sub-resources. Only the key in the same location as this Dataset is allowed to be used for encryption. Format is: `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
  - `timeZone` string — Optional. The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources, such as HL7 messages, where no explicit timezone is specified.
  - `satisfiesPzi` boolean — Output only. Whether the dataset satisfies zone isolation.
  - `satisfiesPzs` boolean — Output only. Whether the dataset satisfies zone separation.
  - `name` string — Identifier. Resource name of the dataset, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`.

## 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)
