Skip to main content

I am successfully using https://api.lucid.app/documents to create basic shapes using this json

{
  "version": 1,
  "rules": e],
  "collections": o],
  "title": "TEST003",
  "pages": p
    {
      "id": "page1",
      "title": "page1",
      "shapes":
        {"id":"block0","type":"database","customData":d],"boundingBox":{"x":100,"y":100,"w":100,"h":100},"text":"Block"}

      ]
    }
  ]
}

but when I tried:

{
  "version": 1,
  "rules": "],
  "collections": e],
  "title": "TEST003",
  "pages": t
    {
      "id": "page1",
      "title": "page1",
      "shapes":
        {"id":"block0","type":"ArchiMate3ServiceBoxBlock","customData":,],"boundingBox":{"x":100,"y":100,"w":100,"h":100},"text":"Block"}

      ]
    }
  ]
}

I got an error:
"details":{"error":"Count: 1, message: Invalid shape type","import_error_code":"invalid_file"}}

Is there a list of valid attributes? How do I make it working with ArchiMate3ServiceBoxBlock.
ArchiMate3ServiceBoxBlock is a shape from standard shape library called “Enterprise Architecture”.
 

I found good answer in:
 



The list of supported shapes is here:

https://developer.lucid.co/docs/shapes-si


Hi ​@arthurn, thank you for your post! Glad to hear you were able to find an answer in another post. If you have further API questions, I would recommend creating new topics in the Lucid For Developers Community (same category as the post you found an answer in)! 

This section of the community acts as a space where you can learn from other users and post to get direct help from our API Product team if you can’t find a previous post answering your question.

Thank you again for posting in the community and please feel free to let us know if you have any questions! 


Reply