Create Document with Standard Import File
Creates a new document from a Lucid Standard Import file (.zip archive) uploaded as multipart/form-data. Requires file, type, and product. Optionally, a title and parent folder can be provided. If no title is provided, the new document's title will be the imported filename.
📘
This endpoint can only create a new Lucidchart or Lucidspark document. It cannot modify an existing document's contents.
📘 ##### Document Creation Location
When there is no parent field on the request, the new document will be created in a default location depending on the authorizing token's scopes.
- If the token authorizing the request uses one of the document.app scopes, then the document will be created in an app-specific folder.
- If one of the document.content scopes is used, the document will be created in the user's 'My Documents folder'.
- If both types of scopes are authorized on the token, the document.content behavior will take priority and the document will be created in the user's 'My Documents' folder.
📘 Standard Import
For more information on how to use the Standard Import, refer to the extensive reference documentation here.
For examples of how to use the Standard Import, refer to the /standard-import folder in Lucid's repository of Sample Lucid REST Applications. This repo also contains some example .zip Standard Import files you can reference or use in your own projects.
Valid Authentication Methods
API Key Grants:
- DocumentEdit
OAuth 2.0 User Token Scopes:
- lucidchart.document.content
- lucidchart.document.app.folder
- lucidspark.document.content
- lucidspark.document.app.folder
Response
Created with Document resource containing information about the newly created document.
Example response
{
"documentId": "110808fd-4553-4316-bccf-4f25ff59a532",
"title": "document title",
"editUrl": "https://lucid.app/lucidchart/110808fd-4553-4316-bccf-4f25ff59a532/edit",
"viewUrl": "https://lucid.app/lucidchart/110808fd-4553-4316-bccf-4f25ff59a532/view",
"version": 101,
"pageCount": 5,
"canEdit": false,
"created": "2019-04-22T13:47:23Z",
"creatorId": 12345,
"lastModified": "2020-06-26T16:29:37Z",
"lastModifiedUserId": 54321,
"customAttributes": [],
"customTags": [
"in progress"
],
"product": "lucidchart",
"status": "Complete",
"classification": "Private",
"trashed": null,
"parent": null,
"repository": null,
"owner": {
"id": 123456,
"type": "user",
"name": "John Doe"
},
"accountId": 1234
}