Microsoft.DigitalTwins (preview:2020-05-31)

2025/10/23 • 24 deleted methods

DigitalTwinModels_Add (removed)
Description Uploads one or more models. When any error occurs, no models are uploaded. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 409 (Conflict): One or more of the provided models already exist.
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 ,
}
,
}
,
}
DigitalTwinModels_List (removed)
Description Retrieves model metadata and, optionally, model definitions. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid.
Reference Link ¶

⚼ Request

GET:  /models
{
dependenciesFor: array ,
includeModelDefinition: boolean ,
x-ms-max-item-count: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
displayName: object ,
description: object ,
id: string ,
uploadTime: string ,
decommissioned: boolean ,
model: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwinModels_GetById (removed)
Description Retrieves model metadata and optionally the model definition. Status codes: 200 (OK): Success. 404 (Not Found): There is no model with the provided id.
Reference Link ¶

⚼ Request

GET:  /models/{id}
{
id: string ,
includeModelDefinition: boolean ,
api-version: string ,
}

⚐ Response (200)

{
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 ,
}
,
}
,
}
DigitalTwinModels_Update (removed)
Description Updates the metadata for a model. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is no model with the provided id.
Reference Link ¶

⚼ Request

PATCH:  /models/{id}
{
id: string ,
updateModel: object ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwinModels_Delete (removed)
Description Deletes a model. A model can only be deleted if no other models reference it. Status codes: 204 (No Content): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is no model with the provided id. 409 (Conflict): There are dependencies on the model that prevent it from being deleted.
Reference Link ¶

⚼ Request

DELETE:  /models/{id}
{
id: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
Query_QueryTwins (removed)
Description Executes a query that allows traversing relationships and filtering by property values. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid.
Reference Link ¶

⚼ Request

POST:  /query
{
querySpecification:
{
query: string ,
continuationToken: string ,
}
,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
query-charge: number ,
}
,
$schema:
{
items:
[
object ,
]
,
continuationToken: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_GetById (removed)
Description Retrieves a digital twin. Status codes: 200 (OK): Success. 404 (Not Found): There is no digital twin with the provided id.
Reference Link ¶

⚼ Request

GET:  /digitaltwins/{id}
{
id: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
etag: string ,
}
,
$schema: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_Add (removed)
Description Adds or replaces a digital twin. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 412 (Precondition Failed): The model is decommissioned or the digital twin already exists (when using If-None-Match: *).
Reference Link ¶

⚼ Request

PUT:  /digitaltwins/{id}
{
id: string ,
twin: object ,
If-None-Match: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
etag: string ,
}
,
$schema: object ,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_Delete (removed)
Description Deletes a digital twin. All relationships referencing the digital twin must already be deleted. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is no digital twin with the provided id.
Reference Link ¶

⚼ Request

DELETE:  /digitaltwins/{id}
{
id: string ,
If-Match: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_Update (removed)
Description Updates a digital twin. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is no digital twin with the provided id.
Reference Link ¶

⚼ Request

PATCH:  /digitaltwins/{id}
{
id: string ,
patchDocument: object ,
If-Match: string ,
api-version: string ,
}

⚐ Response (204)

{
etag: string ,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_GetRelationshipById (removed)
Description Retrieves a relationship between two digital twins. Status codes: 200 (OK): Success. 404 (Not Found): There is either no digital twin or relationship with the provided id.
Reference Link ¶

⚼ Request

GET:  /digitaltwins/{id}/relationships/{relationshipId}
{
id: string ,
relationshipId: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
etag: string ,
}
,
$schema: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_AddRelationship (removed)
Description Adds a relationship between two digital twins. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is either no digital twin, target digital twin, or relationship with the provided id. 409 (Conflict): A relationship with the provided id already exists.
Reference Link ¶

⚼ Request

PUT:  /digitaltwins/{id}/relationships/{relationshipId}
{
id: string ,
relationshipId: string ,
relationship: object ,
If-None-Match: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
etag: string ,
}
,
$schema: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_DeleteRelationship (removed)
Description Deletes a relationship between two digital twins. Status codes: 200 (OK): Success. 404 (Not Found): There is either no digital twin or relationship with the provided id.
Reference Link ¶

⚼ Request

DELETE:  /digitaltwins/{id}/relationships/{relationshipId}
{
id: string ,
relationshipId: string ,
If-Match: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_UpdateRelationship (removed)
Description Updates the properties on a relationship between two digital twins. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is either no digital twin or relationship with the provided id.
Reference Link ¶

⚼ Request

PATCH:  /digitaltwins/{id}/relationships/{relationshipId}
{
id: string ,
relationshipId: string ,
patchDocument: object ,
If-Match: string ,
api-version: string ,
}

⚐ Response (204)

{
etag: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_ListRelationships (removed)
Description Retrieves the relationships from a digital twin. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is no digital twin with the provided id.
Reference Link ¶

⚼ Request

GET:  /digitaltwins/{id}/relationships
{
id: string ,
relationshipName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
object ,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_ListIncomingRelationships (removed)
Description Retrieves all incoming relationship for a digital twin. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is no digital twin with the provided id.
Reference Link ¶

⚼ Request

GET:  /digitaltwins/{id}/incomingrelationships
{
id: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
$relationshipId: string ,
$sourceId: string ,
$relationshipName: string ,
$relationshipLink: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_SendTelemetry (removed)
Description Sends telemetry on behalf of a digital twin. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is no digital twin with the provided id.
Reference Link ¶

⚼ Request

POST:  /digitaltwins/{id}/telemetry
{
id: string ,
telemetry: object ,
dt-id: string ,
dt-timestamp: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_SendComponentTelemetry (removed)
Description Sends telemetry on behalf of a component in a digital twin. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is either no digital twin with the provided id or the component path is invalid.
Reference Link ¶

⚼ Request

POST:  /digitaltwins/{id}/components/{componentPath}/telemetry
{
id: string ,
componentPath: string ,
telemetry: object ,
dt-id: string ,
dt-timestamp: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_GetComponent (removed)
Description Retrieves a component from a digital twin. Status codes: 200 (OK): Success. 404 (Not Found): There is either no digital twin with the provided id or the component path is invalid.
Reference Link ¶

⚼ Request

GET:  /digitaltwins/{id}/components/{componentPath}
{
id: string ,
componentPath: string ,
api-version: string ,
}

⚐ Response (200)

{
$headers:
{
etag: string ,
}
,
$schema: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
DigitalTwins_UpdateComponent (removed)
Description Updates a component on a digital twin. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid. 404 (Not Found): There is either no digital twin with the provided id or the component path is invalid.
Reference Link ¶

⚼ Request

PATCH:  /digitaltwins/{id}/components/{componentPath}
{
id: string ,
componentPath: string ,
patchDocument: object ,
If-Match: string ,
api-version: string ,
}

⚐ Response (204)

{
etag: string ,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
EventRoutes_List (removed)
Description Retrieves all event routes. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid.
Reference Link ¶

⚼ Request

GET:  /eventroutes
{
x-ms-max-item-count: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
endpointName: string ,
filter: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
EventRoutes_GetById (removed)
Description Retrieves an event route. Status codes: 200 (OK): Success. 404 (Not Found): There is no event route with the provided id.
Reference Link ¶

⚼ Request

GET:  /eventroutes/{id}
{
id: string ,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
endpointName: string ,
filter: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
EventRoutes_Add (removed)
Description Adds or replaces an event route. Status codes: 200 (OK): Success. 400 (Bad Request): The request is invalid.
Reference Link ¶

⚼ Request

PUT:  /eventroutes/{id}
{
id: string ,
eventRoute:
{
id: string ,
endpointName: string ,
filter: string ,
}
,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
EventRoutes_Delete (removed)
Description Deletes an event route. Status codes: 200 (OK): Success. 404 (Not Found): There is no event route with the provided id.
Reference Link ¶

⚼ Request

DELETE:  /eventroutes/{id}
{
id: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}