How to import Azure Digital Twins Graph using SDK or API?

Domagoj Bazina 201 Reputation points
2022-12-13T09:48:08.733+00:00

Hello everyone,

I would like to import DT graph (.json file) into Digital Twin Resource using Python SDK or REST API. Azure Digital Twin Explorer features "Import Graph" & "Export Graph" capabilities, but I could not find an example of REST API request or SDK azure.digitaltwins.core.digitaltwinsclient function that implements mentioned functionality. The same behavior may be achieved combining several different requests to upload models, create instances & relationships, but it would be easier to use just one request.

Thanks !

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
233 questions
0 comments No comments
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 35,961 Reputation points Moderator
    2022-12-13T14:02:16.92+00:00

    @Domagoj Bazina Thanks for raising this query.

    I would like to import DT graph (.json file) into Digital Twin Resource using Python SDK or REST API

    I understand that, you are looking for suggestions to import Azure Digital Twins Graph using SDK or API.

    This feedback has already been shared here and our team is working on this feature but no timeline for it.

    Import is the only programmatic bulk operation available today. Please see az dt job import for more details.

    Do let us know if you have any further queries.

    If the response is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.