| Description | : 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. |
| Reference | : Link ¶ |
⚼ Request
POST:
/models
{
models:
object
,
api-version:
string
,
}
⚐ Response (201)
{
displayName:
object
,
description:
object
,
id:
string
,
uploadTime:
string
,
decommissioned:
boolean
,
model:
object
,
}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
details:
[
,
string
,
]
innererror:
}
{
,
code:
string
,
innererror:
string
,
}