Create a new data_type

Path Params
uuid
required

ID of the project this entity belongs to

Body Params
uuid

ID of the entity

int32
required

ID of the user who created this entity

int32
required

ID of the user who most recently edited this entity

int64 | null

Default big integer value if the kind is bigint

boolean | null

Default boolean value if the kind is boolean

boolean

Whether this is strict which means only values from the pre-approved list can be used (denoted by DataTypeValues)

string | null

Default string value if the kind is string (suitable for short form text)

string
required

Name of the entity

string | null

Placeholder name to use for this data type to be shown in the UI

string
enum

Kind of the entity

string | null
enum

The unit of the value this type carries

string | null

Default decimal value if the kind is decimal

string | null

Default text value if the kind is text (suitable for long form text)

date-time

Time when the device created the entity

date-time

Time when the device last updated the entity

date-time | null

Time when this type was marked as hidden (can be only done if this is marked as strict)

boolean

Set to true if should use full serializer

Headers
date
required

Specifies the version of the API to talk to

Response

Language
Credentials
Bearer
JWT
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json