# Method: attributeDefinitions.create

**Full name**: projects.locations.datasets.consentStores.attributeDefinitions.create

Creates a new `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.attributeDefinitions#AttributeDefinition` in the parent `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores#ConsentStore`.

### HTTP request

`POST https://healthcare.googleapis.com/v1/{parent=projects/*/locations/*/datasets/*/consentStores/*}/attributeDefinitions`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The name of the consent store that this Attribute definition belongs to. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) 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>. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.attributeDefinitions#AttributeDefinition`.

### Response body

If successful, the response body contains a newly created instance of `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.attributeDefinitions#AttributeDefinition`.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-healthcare`
- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).