Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.consentStores.create
Creates a new consent store in the parent dataset. Attempting to create a consent store with the same ID as an existing store fails with an ALREADY_EXISTS error.
HTTP request
POST https://healthcare.googleapis.com/v1beta1/{parent=projects/*/locations/*/datasets/*}/consentStores
Required. The name of the dataset this consent store belongs to.
Authorization requires the following IAM permission on the specified resource parent:
healthcare.consentStores.create
Query parameters
Parameters
consentStoreId
string
Required. The ID of the consent store to create. The string must match the following regex: [\p{L}\p{N}_\-\.]{1,256}. Cannot be changed after creation.
Request body
The request body contains an instance of ConsentStore.
Response body
If successful, the response body contains a newly created instance of ConsentStore.
[[["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.consentStores.create\u003c/code\u003e, is used to create a new consent store within a specified dataset.\u003c/p\u003e\n"],["\u003cp\u003eCreating a consent store requires a unique ID, and attempting to create one with an existing ID will result in an \u003ccode\u003eALREADY_EXISTS\u003c/code\u003e error.\u003c/p\u003e\n"],["\u003cp\u003eThe parent parameter in the HTTP request specifies the dataset to which the consent store belongs and requires the \u003ccode\u003ehealthcare.consentStores.create\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econsentStoreId\u003c/code\u003e query parameter, which is mandatory, defines the ID of the consent store and must adhere to a specific format of alphanumeric characters, underscores, hyphens, or periods, and cannot be modified after the store's creation.\u003c/p\u003e\n"],["\u003cp\u003eThe creation of a consent store requires one of the following scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]