Create a thing-type version
Creates a new version of an existing thing-type definition. Requires an API key with
the write action.
Authorizations
API key passed in the header.
Path Parameters
The thing-type index id to add a version to.
Body
The new version's metrics, metadata, and property definitions.
metricIdsarray<string>requiredThe metric ids that make up the new version.
displayNamenull | stringOptional new display name for the new version.
>= 1, <= 100descriptionnull | stringOptional new description for the new version.
>= 0, <= 500tagsnull | arrayOptional free-form tags for the new version.
modelMetadataanypropertyDefinitionsnull | arrayProperty definitions for the new version. Omit (or null) to inherit the latest version's property definitions; provide a list to fully replace them (an empty list starts the new version with no property definitions).
Response
Created; the Location header points to the versions collection.
thingTypeDefIdstringIdentifier of this definition version.
thingTypeIdstringIdentifier of the owning thing type (index id).
versioninteger | string<int32>The version number of this definition.
^-?(?:0|[1-9]\d*)$displayNamestringHuman-readable name for the thing type.
descriptionstringDescription of this definition version.
tagsarray<string>Free-form tags applied to this definition.
metricIdsarray<string>The metric ids included in this definition version.
deletedMetricIdsarray<string>Metric ids that were present in earlier versions but removed in this one.
allowedSubDefinitionsarray<string>Sub-definition ids allowed under this thing type, if any.
propertyDefinitionsarray<object>The property schema (typed, predefined keys) for devices of this type.
propertyDefinitions.namestringrequiredpropertyDefinitions.descriptionstringpropertyDefinitions.unitstringpropertyDefinitions.valueTypestringrequiredpropertyDefinitions.constraintsarray<object>modelMetadataanymetricDefinitionsnull | arrayThe resolved metric definitions for this version. Populated only when the request asks for them (e.g. `?includeMetricDefinitions=true`); otherwise omitted.
createdAtstring<date-time>Timestamp (UTC) when this version was created.
updatedAtnull | string<date-time>Timestamp (UTC) when this version was last updated.
createdBystringIdentifier of the actor that created this version.
updatedBynull | stringIdentifier of the actor that last updated this version.