Contents

Save browser-edited DOCX bytes to the selected document version

Validates serialized DOCX bytes through the engine, updates the exact selected version without advancing the version counter, and rejects stale expected_content_sha256 values without overwriting. Creating a version is an explicit separate action.

POST /documents/{documentId}/content

Path parameters

  • documentId string Required

Headers

  • Authorization string Required

    Bearer <session token>: the signed-in user’s Scaffold session token.

  • x-org-id string Required

Body

  • content_base64 string Required

    Serialized DOCX package bytes.

  • expected_content_sha256 string

    Content hash observed when this editor snapshot began.

  • client_edit_id string

    Client-generated correlation id for the autosave.