Document apiReferenceMutations
mutations.rollbackTemporary
Restore the original document and release a temporary preview.
mutates documentnon-idempotent
await doc.mutations.rollbackTemporary(…)Expected result
Returns a temporary mutation receipt with preview identity and caller tag.
Inputs
previewIdstringrequired1 additional input field
expectedRevisionstringResult
Output fields
changeTagstringCaller correlation for this commit only; never persisted or replayed on Undo/Redo.
temporaryobjectrequiredFields
idstringrequiredphase"begin" | "replace" | "rollback" | "commit"requiredtagstringrequiredonNativeEdit"cancel" | "preserve"cancelledBy"native-edit"appliedChangeMode"direct" | "tracked"idstringinsertedEntityAddress[]updatedEntityAddress[]removedEntityAddress[]invalidatedRefsAffectedRef[]remappedRefsAffectedRefRemapping[]affectedStoriesStoryLocator[]textRangeShiftsTextRangeShift[]trackedTextRangeShiftsTrackedTextRangeShift[]txIdstringwarningsReviewWarning[]effectsReceiptEffectsFields
insertedTextTextMutationEffect[]insertedBlocksBlockMutationEffect[]resultTextTextTargetFields
kind"text"requiredsegmentsTextSegment[]requiredstoryStoryLocatorStory scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes.
body
kind"story"requiredstoryType"body"requiredheaderFooterSlot
kind"story"requiredstoryType"headerFooterSlot"requiredsectionSectionAddressrequiredheaderFooterKind"header" | "footer"requiredvariant"default" | "first" | "even"requiredresolution"effective" | "explicit"onWrite"materializeIfInherited" | "editResolvedPart" | "error"headerFooterPart
kind"story"requiredstoryType"headerFooterPart"requiredrefIdstringrequiredfootnote
kind"story"requiredstoryType"footnote"requirednoteIdstringrequiredendnote
kind"story"requiredstoryType"endnote"requirednoteIdstringrequiredtextbox
kind"story"requiredstoryType"textbox"requiredtextboxIdstringrequiredcoordinateSpaceTextCoordinateSpacetrackedChangeRefsTrackedChangeAddress[]trackedChangeCountintegerchangedbooleansuccesstruerequiredrevisionobjectrequiredFields
beforestringrequiredafterstringrequiredFailures
Pre-apply throws
INVALID_INPUTTARGET_NOT_FOUNDREVISION_MISMATCH
3 more codes
PRECONDITION_FAILEDCAPABILITY_UNSUPPORTEDCAPABILITY_UNAVAILABLE
Raw schemas
Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.
View raw JSON schemas