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 API 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 method is \u003ccode\u003ePOST\u003c/code\u003e, directed to a URL that uses gRPC Transcoding syntax, with the parent consent store's name as a required parameter in the path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an instance of \u003ccode\u003eAttributeDefinition\u003c/code\u003e, and the response will also contain a newly created instance of \u003ccode\u003eAttributeDefinition\u003c/code\u003e upon success.\u003c/p\u003e\n"],["\u003cp\u003eCreating an Attribute definition requires authorization, which is granted through the \u003ccode\u003ehealthcare.attributeDefinitions.create\u003c/code\u003e IAM permission on the parent resource.\u003c/p\u003e\n"],["\u003cp\u003eA unique ID for the new Attribute definition must be supplied in the \u003ccode\u003eattributeDefinitionId\u003c/code\u003e query parameter, and must adhere to a specified regex pattern.\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/v1/projects.locations.datasets.consentStores.attributeDefinitions#AttributeDefinition) in the parent [consent store](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores#ConsentStore).\n\n### HTTP request\n\n`POST https://healthcare.googleapis.com/v1/{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/v1/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/v1/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)."]]