Skip to main content

Is it possible to import a json file via the api with the mind map data in it?  When I push this via the api using the import feature and the file zipped up and in .lucid ext the drawing gets created but no data in it.

here is the json
 

{
"version": 1,
"data":{
"collections": :
{
"id": "yq1GdOUoQ2Sy_b",
"name": "Mind Map Default State",
"primaryKey": :
"Id"
]
}
]
},
"pages": :
{
"id": "0_0",
"title": "Page 1",
"index": 0,
"items": {
"shapes": :
{
"id": "ohlKcKGdHc/pL1XU+jmYu5zRg3U=",
"class": "IntelligentMindMapRootNodeBlock",
"textAreas": :
{
"label": "t_Text",
"text": "Root"
},
{
"label": "Placeholder",
"text": ""
}
],
"customData": :],
"linkedData": :
{
"collectionId": "o4wnBlmn+IuGPtFPcc3qmxwNr0U=_b",
"data": :
{
"key": "Id",
"value": "7PxqIKZ5AX6c"
},
{
"key": "Text",
"value": "Root"
},
{
"key": "ParentId",
"value": ""
}
],
"primaryKeyValue": "\"7PxqIKZ5AX6c\""
}
]
},
{
"id": "Y6R4wyK2TH2k3CtbIQJQq7Dctx8=",
"class": "IntelligentMindMapNodeBlock",
"textAreas": :
{
"label": "t_Text",
"text": "Child1"
},
{
"label": "Placeholder",
"text": "plugin-default-block-placeholder"
}
],
"customData": :],
"linkedData": :
{
"collectionId": "o4wnBlmn+IuGPtFPcc3qmxwNr0U=_b",
"data": :
{
"key": "Id",
"value": "7Pxq9A69vFTo"
},
{
"key": "Text",
"value": "Child1"
},
{
"key": "ParentId",
"value": "7PxqIKZ5AX6c"
}
],
"primaryKeyValue": "\"7Pxq9A69vFTo\""
}
]
}
],
"lines": :
{
"id": "4LnrMAfkqaRgFkPlnV+E4sNpldw=",
"endpoint1": {
"style": "None",
"connectedTo": "ohlKcKGdHc/pL1XU+jmYu5zRg3U="
},
"endpoint2": {
"style": "None",
"connectedTo": "Y6R4wyK2TH2k3CtbIQJQq7Dctx8="
},
"textAreas": :],
"customData": :],
"linkedData": :]
}
],
"groups": :],
"layers": :]
},
"customData": :],
"linkedData": :]
}
]
}

 

Hi ​@EricG 

Importing diagrams via JSON using the Lucidchart API is possible, but mind maps present a challenge due to their reliance on special intelligent shapes that aren't officially supported in API-based imports.

  • If you're finding that your imports are resulting in empty documents, it's likely because the IntelligentMindMapNodeBlock classes require internal Lucid logic that isn't triggered by raw JSON, and the schema for intelligent diagrams like mind maps isn't fully supported.

To achieve better results, delegate this by importing simple mind maps using TXT files through the Lucidchart UI, manually recreating mind maps with standard shapes via the API, or using supported diagram types like flowcharts, ERDs, or org charts, which are more compatible with JSON imports.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards


Thank you for your response.  Is there any support for this on the roadmap?  Also, is there any conversion from flowcharts to mind maps? 


Hi ​@EricG 

Flowchart -> mind map conversion is unsupported, consider rebuilding using TXT or templates.

Best Regards


Hi Eric,

 

Thank you for your question! As has already been mentioned, we do not currently support the importing of mind maps via the API. We also do not currently have support for this on our roadmap, but I will bring your request back to the production team for further consideration.


Reply