Document apiReferenceTables
tables.insertRow
Insert a new row into the target table. The new row is cloned from an adjacent row, so it inherits the existing cell shading, borders, alignment, and padding. No follow-up styling call is needed unless the new row should look different from the rest of the table.
mutates documenttracked modedry runnon-idempotent
doc.tables.insertRow(…)Expected result
Returns a TableMutationResult receipt confirming a row was inserted.
Inputs
Variant 1
targetTableRowAddressrequiredFields
kind"block"requirednodeType"tableRow"requirednodeIdstringrequiredposition"above" | "below"requiredcountintegerVariant 2
targetTableAddressrequiredFields
kind"block"requirednodeType"table"requirednodeIdstringrequiredrowIndexintegerrequiredposition"above" | "below"requiredcountintegerVariant 3
nodeIdstringrequiredrowIndexintegerrequiredposition"above" | "below"requiredcountintegerVariant 4
targetTableAddressconditionally requiredFields
kind"block"requirednodeType"table"requirednodeIdstringrequirednodeIdstringconditionally requiredcountintegerResult
Output fields
true
successtruerequiredtableTableAddressFields
kind"block"requirednodeType"table"requirednodeIdstringrequiredtrackedChangeRefsEntityAddress[]false
successfalserequiredfailureobjectrequiredFields
code"NO_OP" | "INVALID_TARGET" | "TARGET_NOT_FOUND" | "CAPABILITY_UNAVAILABLE"requiredmessagestringrequireddetailsunknownFailures
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETCAPABILITY_UNAVAILABLE
1 more codes
INVALID_TARGET
Non-applied receipt codes
INVALID_TARGET
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