Summary
Toggle conditional-format flags (header row, banded rows/columns, first/last column, last row) on a table. PassstyleOptions with the flags you want to set or clear (omitted flags stay unchanged). For “format the first row as a header” use styleOptions: \{ headerRow: true \}. Optional styleId applies a named table style. Leave it unset unless you have a styleId from superdoc_get_content (no need to invent one).
- Operation ID:
tables.applyStyle - API member path:
editor.doc.tables.applyStyle(...) - Mutates document:
yes - Idempotency:
conditional - Supports tracked mode:
no - Supports dry run:
yes - Deterministic target resolution:
yes
Expected result
Returns a TableMutationResult receipt; reports NO_OP if the style and all provided options already match.Input fields
Variant 1 (target.kind=“block”)
Variant 2 (required: nodeId)
Example request
Output fields
Variant 1 (success=true)
Variant 2 (success=false)
Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETCAPABILITY_UNAVAILABLE
Non-applied failure codes
NO_OPINVALID_TARGETINVALID_INPUT
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema
Raw success schema
Raw success schema
Raw failure schema
Raw failure schema

