@shu Thanks for your reply just now, unfortunately the screenshot you provided in your reply contained your API key, which is sensitive information to your account. We’ve taken down your original reply to protect your account’s privacy, and would suggest that you delete that api key from your account and generate a new one to avoid any unwanted access by anyone that might have seen it before we were able to take down your post.
Here is the original content of your post (minus the screenshot):
Hi SHira, Thank you for your reply!
We understand that it is not possible to draw through the API in natural language. But are you saying that it is possible to draw through the API at the prompt of the program?
>>. The Lucidchart API offers a variety of features that allow you to programmatically manipulate diagrams. Primarily, it allows you to create and modify documents, allowing users to generate new Lucidchart documents or dynamically modify existing ones. But are you saying that it is possible to draw via the API at the prompt of the program?>>Documents can be created and modified, and users can generate new Lucidchart documents or dynamically modify existing ones. But are you saying that it is possible to draw via the API at the prompt of the program?»>You can change the document dynamically. But are you saying that it is possible to draw via the API at the prompt of the program? → arrow
1 Does the LucidchartAP| allow programmatic (Python) generation of new Lucidchart diagrams?
I was trying to create a future timeline by referencing the Lucid Rest API Creat/Copy/Import Document, but it seems that only the file name is created and not the contents of the document. Did I do something wrong with the procedure or code? [screenshot omitted]
I’d like to clarify and correct a bit of @Shira M ‘s reply. Our API does not currently allow for any means of editing the contents of an existing document, but it does allow for importing and creating new documents from JSON input. So there is not a way for a program to prompt a change to an existing document via our current API, but you can definitely write a script that generates new documents.
Here in our documentation you’ll find the overview for Standard Import (our JSON import) with some explanations about how to set up files for import, how to format the JSON, etc. You’ll also find links to some open source example scripts we have built to leverage this API under this heading. Give that guide a look, then give the import endpoint another try, and if you’re still running into trouble, reach back out and we’ll be happy to assist (just make sure to redact any sensitive/authentication information 😁)!