Required. The name of the consent store that this Attribute definition belongs to.
Authorization requires the following IAM permission on the specified resource parent:
healthcare.attributeDefinitions.create
Query parameters
Parameters
attributeDefinitionId
string
Required. The ID of the Attribute definition to create. The string must match the following regex: [_a-zA-Z][_a-zA-Z0-9]{0,255} and must not be a reserved keyword within the Common Expression Language as listed on https://github.com/google/cel-spec/blob/master/doc/langdef.md.
[[["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.attributeDefinitions.create\u003c/code\u003e is used to create a new Attribute definition within a specified consent store.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to create an Attribute definition is a \u003ccode\u003ePOST\u003c/code\u003e request to a URL that follows gRPC Transcoding syntax, using the parent consent store as a parameter in the URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires \u003ccode\u003ehealthcare.attributeDefinitions.create\u003c/code\u003e IAM permission on the parent resource, and it must contain a unique \u003ccode\u003eattributeDefinitionId\u003c/code\u003e that follows a specific regex pattern and is not a reserved keyword in the Common Expression Language.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an \u003ccode\u003eAttributeDefinition\u003c/code\u003e instance, and the successful response will return a newly created \u003ccode\u003eAttributeDefinition\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization 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 scopes.\u003c/p\u003e\n"]]],[],null,["# Method: attributeDefinitions.create\n\n**Full name**: projects.locations.datasets.consentStores.attributeDefinitions.create\n\nCreates a new [Attribute definition](/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.consentStores.attributeDefinitions#AttributeDefinition) in the parent [consent store](/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.consentStores#ConsentStore).\n\n### HTTP request\n\n`POST https://healthcare.googleapis.com/v1beta1/{parent=projects/*/locations/*/datasets/*/consentStores/*}/attributeDefinitions`\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 [AttributeDefinition](/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.consentStores.attributeDefinitions#AttributeDefinition).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AttributeDefinition](/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.consentStores.attributeDefinitions#AttributeDefinition).\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)."]]