Document apiReferenceTables
tables.setCellText
Replace the text content of a single table cell with plain text (one paragraph). Accepts either a direct cell locator (a tableCell block address with kind, nodeType, nodeId) OR a table target with rowIndex + columnIndex. Cell properties (vertical alignment, shading, borders, colspan/rowspan) are preserved. Use this for filling cells with values, replacing cell text, or populating empty tables. Much simpler than walking paragraphs and runs through superdoc_edit.
mutates documentdry runidempotent
doc.tables.setCellText(…)Expected result
Returns a TableMutationResult receipt; reports NO_OP if the cell already contains exactly this text.
Inputs
Variant 1
targetTableCellAddressrequiredFields
kind"block"requirednodeType"tableCell"requirednodeIdstringrequiredtextstringrequiredVariant 2
nodeIdstringrequiredtextstringrequiredVariant 3
targetTableAddressrequiredFields
kind"block"requirednodeType"table"requirednodeIdstringrequiredrowIndexintegerrequiredcolumnIndexintegerrequiredtextstringrequiredVariant 4
nodeIdstringrequiredrowIndexintegerrequiredcolumnIndexintegerrequiredtextstringrequiredResult
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
Non-applied receipt codes
INVALID_TARGETNO_OP
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