ReferenceDocumentsDocumentidSectionsSectionid

    Replace one section

    Replaces the HTML of one existing section, guarded by `baseHash`: when the section changed since it was read, nothing is written and 409 returns `code: drift`…

    PUT
    /documents/{documentId}/sections/{sectionId}

    Replaces the HTML of one existing section, guarded by baseHash: when the section changed since it was read, nothing is written and 409 returns code: drift with the live HTML and its hash. Refused while a document run is writing (409) and when the document content is locked (403). A last resort — prefer correcting the inputs and regenerating; then review the document. Same operation as MCP update_document_section.

    Authorization

    bearerAuth
    AuthorizationBearer <token>

    In: header

    Path Parameters

    documentId*string
    sectionId*string

    Request Body

    application/json

    TypeScript Definitions

    Use the request body type in TypeScript.

    Response Body

    application/json

    application/json

    application/json

    application/json

    application/json

    application/json

    curl -X PUT "https://example.com/documents/string/sections/string" \  -H "Content-Type: application/json" \  -d '{    "baseHash": "string",    "html": "string"  }'
    {  "baseHash": "string",  "success": true}