Data type
A DataType can be represented as follows:
1 2 3 4 5 6 7 8 |
|
The fields are as follows:
- id (UUID): The unique identifier of this data type
- domainType (Type): The domain type of this catalogue object. Could be
PrimitiveType
orEnumerationType
. - label (String): The human-readable identifier of this type.
- description (String): A long description of the data type, and any important characteristics of the data. This field may include HTML, or MarkDown.
- lastUpdated (DateTime): The date/time when this DataType was last modified
- model (UUID): The unique identifier of the parent data model
As well as the endpoints listed below, a DataType is also a CatalogueItem, and so a DataType identifier can also be used as the parameter to any of those endpoints
Default Data Types¶
When creating DataModels, a default data type provider can be used to automatically define data types for a data model. To list all available data type providers:
Getting information¶
The following endpoint returns a paginated list of all the DataTypes within a particular DataModel.
This endpoint provides the detailed information about a particular DataType under a DataModel.
Create / Update / Delete¶
To create a new DataType from scratch, use the following post endpoint.
To edit the properties of a DataType, use the following endpoint, with a body similar to the JSON described at the top of this page:
To delete a DataType, use the following endpoint.
Copying¶
Instead of creating a new DataType from scratch, it is also possible to copy an existing DataType from another DataModel. Use the following endpoint to accomplish this. The dataModelId refers to the target DataModel to copy to; otherDataModelId and dataTypeId refer to the source DataModel/Type to copy from.