Grist Octri Preview
POST/docs/{docId}/replace

Replace document content

Replace the current document content with content from another source. Can restore from a snapshot or copy from another document.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 3 body fields
docIdstringrequired
A string id (UUID)
resetTutorialMetadatabooleanoptional
Reset tutorial progress when replacing (for tutorial forks)
snapshotIdstringoptional
ID of snapshot to restore from
sourceDocIdstringoptional
ID of document to copy content from

1 status code
200Document content replaced successfully