v7

latestSwagger 2.02026-07-13322074.5 KB
Models

Uploads one or more models. When any error occurs, no models are uploaded. Status codes:

  • 201 Created
  • 400 Bad Request
    • DTDLParserError - The models provided are not valid DTDL.
    • InvalidArgument - The model id is invalid.
    • LimitExceeded - The maximum number of model ids allowed in 'dependenciesFor' has been reached.
    • ModelVersionNotSupported - The version of DTDL used is not supported.
  • 409 Conflict
    • ModelAlreadyExists - The model provided already exists.
post/models

Query parameters

api-versionstring required

The requested API version.

Request body

object[] required

Response

Success

displayNameobject

A language map that contains the localized display names as specified in the model definition.

descriptionobject

A language map that contains the localized descriptions as specified in the model definition.

idstring required

The id of the model as specified in the model definition.

uploadTimestring date-time

The time the model was uploaded to the service.

decommissionedboolean

Indicates if the model is decommissioned. Decommissioned models cannot be referenced by newly created digital twins.

modelobject

The model definition.