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/v1/{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` creates a new consent store within a specified dataset."],["The request requires a unique `consentStoreId` for the new store, which must adhere to a specific regex pattern and cannot be modified after creation."],["The operation requires the `healthcare.consentStores.create` IAM permission on the parent dataset and the use of the specified OAuth scopes."],["Attempting to create a consent store with an ID that already exists will result in an `ALREADY_EXISTS` error."],["The data needed to create the new consent store is provided in the request body as an instance of the `ConsentStore` object, and a successfully creation returns an instance of that same object."]]],[]]