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-01-28 UTC."],[[["This endpoint, `projects.locations.datasets.consentStores.create`, is used to create a new consent store within a specified dataset."],["Creating a consent store requires a unique ID, and attempting to create one with an existing ID will result in an `ALREADY_EXISTS` error."],["The parent parameter in the HTTP request specifies the dataset to which the consent store belongs and requires the `healthcare.consentStores.create` IAM permission."],["The `consentStoreId` 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."],["The creation of a consent store requires one of the following scopes: `https://www.googleapis.com/auth/cloud-healthcare` or `https://www.googleapis.com/auth/cloud-platform`."]]],[]]