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 contentThis 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.
400Invalid content, unsupported product, content requiring generators or assisted layout, or no content changes to save.
401Missing or invalid authentication.
403The caller does not have the required document access or edit permission.
404The document was not found or is trashed.
409The destination changed during replacement; no replacement was saved.
500An internal error occurred. The content may already be saved if the final metadata read failed.