Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.create
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.
HTTP request
POST https://healthcare.googleapis.com/v1/{parent=projects/*/locations/*}/datasets
[[["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-06-27 UTC."],[[["\u003cp\u003eThis endpoint, \u003ccode\u003eprojects.locations.datasets.create\u003c/code\u003e, is used to create a new health dataset within a specified project and location.\u003c/p\u003e\n"],["\u003cp\u003eThe process returns an \u003ccode\u003eOperation\u003c/code\u003e response, which can either contain a successful \u003ccode\u003eDataset\u003c/code\u003e creation or an \u003ccode\u003eOperation.error\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is required, indicating the project and location for the dataset's creation, along with the \u003ccode\u003ehealthcare.datasets.create\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edatasetId\u003c/code\u003e query parameter is mandatory and specifies the ID of the dataset to be created, adhering to a specific regex pattern.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an \u003ccode\u003eOperation\u003c/code\u003e instance, and authorization 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: datasets.create\n\n**Full name**: projects.locations.datasets.create\n\nCreates a new health dataset. Results are returned through the [Operation](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation) interface which returns either an `Operation.response` which contains a [Dataset](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets#Dataset) or `Operation.error`. The [metadata](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation.FIELDS.metadata) field type is [OperationMetadata](/healthcare-api/docs/reference/rest/v1/OperationMetadata).\n\n### HTTP request\n\n`POST https://healthcare.googleapis.com/v1/{parent=projects/*/locations/*}/datasets`\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 [Dataset](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets#Dataset).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\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)."]]