Replace Document Content

Replaces the contents of an existing Lucidchart or Lucidspark document using the
same Lucid Standard Import JSON content flow as Create Document.
The document ID, title, product, ownership, sharing, and folder remain unchanged.
The content field is required and must conform to the Lucid Standard Import schema.

Content is converted directly to document state without creating another document.
The caller must be able to edit the destination. Conversion failure leaves the
destination unchanged. Concurrent edits during conversion or replacement return 409;
fetch the latest document before retrying.
Replacement also removes existing comments.

šŸ“˜

Restoring previous content

This operation replaces the document's content rather than merging with it.
The previous content is saved in the document's revision history, and users with
revision-history access can restore it from the editor. Revision history is not
available on every plan, so callers without that access cannot restore the
previous content themselves.

Path Params
uuid
required

ID of the document whose contents will be replaced.

Body Params
content
object
required

Defines the content of a document using the Lucid Standard Import format, including pages, shapes, and lines.
Mutually exclusive with extensionBootstrapData.

Responses

400

Invalid content, unsupported product, content requiring generators or assisted layout, or no content changes to save.

401

Missing or invalid authentication.

403

The caller does not have the required document access or edit permission.

404

The document was not found or is trashed.

409

The destination changed during replacement; no replacement was saved.

500

An internal error occurred. The content may already be saved if the final metadata read failed.

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json