Create a thing-type definition
Creates a new thing-type definition (its first version). Requires an API key with the
write action.
Authorizations
API key passed in the header.
Body
The thing type to create.
displayNamestringrequiredHuman-readable name for the thing type.
>= 1, <= 100descriptionnull | stringOptional description of the thing type.
>= 0, <= 500defaultImageUrlnull | string<uri>Optional URL of a default image for devices of this type.
>= 0, <= 2048defaultIconUrlnull | string<uri>Optional URL of a default icon for devices of this type.
>= 0, <= 2048metricIdsarray<string>requiredThe metric ids that make up this thing type's first version.
modelMetadataanytagsnull | arrayOptional free-form tags.
propertyDefinitionsnull | arrayOptional property schema (typed, predefined keys) for devices of this type.
Response
Created; the Location header points to the new thing type.
thingTypeIdstringStable identifier for the thing type (the index id).
displayNamestringHuman-readable name for the thing type.
descriptionstringDescription of the thing type.
defaultImageUrlnull | stringOptional URL of a default image for devices of this type.
defaultIconUrlnull | stringOptional URL of a default icon for devices of this type.
latestThingTypeDefIdnull | stringIdentifier of the latest definition version this index points to.
latestVersionNumberinteger | string<int32>Version number of the latest definition.
^-?(?:0|[1-9]\d*)$versionsarray<object>The full version history for this thing type.
versions.versioninteger | string<int32>The version number.
^-?(?:0|[1-9]\d*)$versions.thingTypeDefIdstringIdentifier of the definition for this version.
isDeletedbooleanWhether this thing type has been soft-deleted.
createdAtstring<date-time>Timestamp (UTC) when the thing type was created.
updatedAtnull | string<date-time>Timestamp (UTC) when the thing type was last updated.
createdBystringIdentifier of the actor that created the thing type.
updatedBynull | stringIdentifier of the actor that last updated the thing type.