Update a thing-type version
Updates the metadata of a specific thing-type definition version. Requires an API key
with the write action.
Authorizations
API key passed in the header.
Path Parameters
The definition version id.
Body
The fields to update; omitted fields are left unchanged.
displayNamenull | stringNew display name, if changing.
>= 1, <= 100descriptionnull | stringNew description, if changing.
>= 0, <= 500tagsnull | arrayNew tags, if changing.
modelMetadataanypropertyDefinitionsnull | arrayProperty definitions for this version. Omit (or null) to leave unchanged; provide a list to fully replace the existing set (an empty list removes all).
Response
The updated definition version.
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.