# CreateDataTypeRequest

## Properties

| Name | Type | Required | Description |
|------|------|----------|-------------|
| **scope** | **str** | Required | The scope that the data type will be created in. |
| **code** | **str** | Required | The code of the data type. Together with the scope this uniquely defines the data type. |
| **type_value_range** | **str** | Required | Indicates the range of data acceptable by a data type. Available values: Open, Closed. |
| **display_name** | **str** | Required | The display name of the data type. |
| **description** | **str** | Required | The description of the data type. |
| **value_type** | **str** | Required | The expected type of the values. Available values: String, Int, Decimal, DateTime, Boolean, Map, List, PropertyArray, Percentage, Code, Id, Uri, CurrencyAndAmount, TradePrice, Currency, MetricValue, ResourceId, ResultValue, CutLocalTime, DateOrCutLabel, UnindexedText. |
| **acceptable_values** | **List[str]** | Optional | The acceptable set of values for this data type. Only applies to &#39;open&#39; value type range. |
| **unit_schema** | **str** | Optional | The schema of the data type&#39;s units. Available values: NoUnits, Basic, Iso4217Currency. |
| **acceptable_units** | [List[CreateUnitDefinition]](CreateUnitDefinition.md) | Optional | The definitions of the acceptable units. |
| **reference_data** | [ReferenceData](ReferenceData.md) | Optional | *No description available.* |


## Usage

### Creating from keyword arguments

```python
from finbourne.sdk.services.lusid.models.CreateDataTypeRequest import CreateDataTypeRequest

instance = CreateDataTypeRequest(
    scope="...",  # required — The scope that the data type will be created in.
    code="...",  # required — The code of the data type. Together with the scope this uniquely defines the data type.
    type_value_range="...",  # required — Indicates the range of data acceptable by a data type. Available values: Open, Closed.
    display_name="...",  # required — The display name of the data type.
    description="...",  # required — The description of the data type.
    value_type="...",  # required — The expected type of the values. Available values: String, Int, Decimal, DateTime, Boolean, Map, List, PropertyArray, Percentage, Code, Id, Uri, CurrencyAndAmount, TradePrice, Currency, MetricValue, ResourceId, ResultValue, CutLocalTime, DateOrCutLabel, UnindexedText.
    acceptable_values=,  # optional — The acceptable set of values for this data type. Only applies to &#39;open&#39; value type range.
    unit_schema="...",  # optional — The schema of the data type&#39;s units. Available values: NoUnits, Basic, Iso4217Currency.
    acceptable_units=[],  # optional — The definitions of the acceptable units.
    reference_data=ReferenceData(...)  # optional
)
```

- [CreateUnitDefinition](CreateUnitDefinition.md) — used in `acceptable_units`
- [ReferenceData](ReferenceData.md)


[Back to top](#) · [Back to API list](../../api_endpoints.md) · [Back to Model list](../../models.md) · [Back to README](../../../../../README.md)

