This error commonly occurs when the parent folder containing the standard import files/folders (document.json, data<, images) is compressed into a zip archive instead of selecting the individual files/folders and compressing them as a group (refer to the example file structure on the right to see both the incorrect and the correct way to zip the files).
This error commonly occurs when a number is expected during JSON parsing, but something else is found instead. For example, this can happen when using the position property of the line endpoint object. For a shapeEndpoint, the position property expects a RelativePosition object. However, a lineEndpoint just expects a number for the position property. When an object is used instead of a number, this error is thrown.
import.lucid
└── folder
├── document.json
└── data
└── email-flow.csv
import.lucid
├── document.json
└── data
└── email-flow.csv
Common Request Errors
Response Code
Error Message
Possible Solution
415: Unsupported Media Type
invalidImportType: Importing the provided file type is not supported
This error commonly occurs when the type of the file in the form data is not set correctly. Refer to the Import Document endpoint or to the code to the right for an example in cURL of how to set the file type in the form data being sent. For the Standard Import, this file type must be set tox-application/vnd.lucid.standardImport
400: Bad Request
badRequest: You must set the product field to either 'lucidchart' or 'lucidspark' when using the Lucid Standard Import
If the product field is correctly being set in your request (as explained in the Overview), then this error commonly happens when the data is not being sent as form data. This causes the request to fail even if all the data independently is correct. Refer to the Import Document endpoint or to the code to the right for an example in cURL of how to send the request data as form data. Additionally, you may refer to the documentation for your specific API platform, such as Postman.