Replaces the markup of an existing Mermaid diagram in a document.
Creating, retrieving, listing, and updating Mermaid diagrams in existing documents share a per-account rate limit.
Supply expectedMarkup from the diagram's last read to make this a conditional update.
The comparison is exact, including whitespace and line endings. A mismatch or a concurrent
document save returns 409 without applying the update. Fetch the diagram again and obtain
a new decision before retrying. Omitting expectedMarkup retains unconditional replacement.
Valid Authentication Methods
API Key Grants:
DocumentEdit
OAuth 2.0 User Token Scopes:
lucidchart.document.contentlucidspark.document.contentlucid.document.content
400Bad Request if the request body is invalid or the markup exceeds 100,000 characters.
403Forbidden if the app making the request does not have write permission to the document, or if the document does not exist.
404Not Found if the Mermaid diagram does not exist.
409Conflict if expectedMarkup does not match the current markup or a document change prevents the update from being saved. The update is not applied.