Document apiReferenceTables

tables.setCellProperties

Set non-text properties on a single table cell: vertical alignment, text wrapping, fit-text, or preferred width. Requires a cell-level target (a tableCell block address with kind, nodeType, nodeId). Does NOT accept a table target with rowIndex/columnIndex. To set the text content of a cell, use action "set_cell_text" instead.

mutates documentdry runidempotent
doc.tables.setCellProperties(…)

Expected result

Returns a TableMutationResult receipt; reports NO_OP if cell properties already match.

Inputs

targetTableCellAddressconditionally required
Fields
kind"block"required
nodeType"tableCell"required
nodeIdstringrequired
nodeIdstringconditionally required
5 additional input fields
preferredWidthPtnumber
preferredWidthType"auto" | "dxa" | "pct"
verticalAlign"top" | "center" | "bottom"
wrapTextboolean
fitTextboolean

Result

Output fields
true
successtruerequired
tableTableAddress
Fields
kind"block"required
nodeType"table"required
nodeIdstringrequired
trackedChangeRefsEntityAddress[]
false
successfalserequired
failureobjectrequired
Fields
code"NO_OP" | "INVALID_TARGET" | "TARGET_NOT_FOUND" | "CAPABILITY_UNAVAILABLE"required
messagestringrequired
detailsunknown

Failures

Pre-apply throws

  • TARGET_NOT_FOUND
  • INVALID_TARGET
  • CAPABILITY_UNAVAILABLE

Non-applied receipt codes

  • INVALID_TARGET
  • NO_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