Document apiReferenceTables

tables.setBorders

Set borders on a table using a target set or per-edge patch.

mutates documentdry runidempotent
doc.tables.setBorders(…)

Expected result

Returns a TableMutationResult receipt. Does not perform NO_OP detection.

Inputs

applyTo
targetBlockNodeAddressconditionally required
Fields
kind"block"required
nodeType"paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt"required
nodeIdstringrequired
storyStoryLocator

Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes.

body
kind"story"required
storyType"body"required
headerFooterSlot
kind"story"required
storyType"headerFooterSlot"required
sectionSectionAddressrequired
headerFooterKind"header" | "footer"required
variant"default" | "first" | "even"required
resolution"effective" | "explicit"
onWrite"materializeIfInherited" | "editResolvedPart" | "error"
headerFooterPart
kind"story"required
storyType"headerFooterPart"required
refIdstringrequired
footnote
kind"story"required
storyType"footnote"required
noteIdstringrequired
endnote
kind"story"required
storyType"endnote"required
noteIdstringrequired
textbox
kind"story"required
storyType"textbox"required
textboxIdstringrequired
nodeIdstringconditionally required
mode"applyTo"required
applyTo"all" | "outside" | "inside" | "top" | "bottom" | "left" | "right" | "insideH" | "insideV"required
borderobject | nullrequired
lineStyle
lineStylestringrequired
lineWeightPtnumberrequired
colorstringrequired
Variant 2

No fields.

edges
targetBlockNodeAddressconditionally required
Fields
kind"block"required
nodeType"paragraph" | "heading" | "listItem" | "table" | "tableRow" | "tableCell" | "tableOfContents" | "image" | "sdt"required
nodeIdstringrequired
storyStoryLocator

Story scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes.

body
kind"story"required
storyType"body"required
headerFooterSlot
kind"story"required
storyType"headerFooterSlot"required
sectionSectionAddressrequired
headerFooterKind"header" | "footer"required
variant"default" | "first" | "even"required
resolution"effective" | "explicit"
onWrite"materializeIfInherited" | "editResolvedPart" | "error"
headerFooterPart
kind"story"required
storyType"headerFooterPart"required
refIdstringrequired
footnote
kind"story"required
storyType"footnote"required
noteIdstringrequired
endnote
kind"story"required
storyType"endnote"required
noteIdstringrequired
textbox
kind"story"required
storyType"textbox"required
textboxIdstringrequired
nodeIdstringconditionally required
mode"edges"required
edgesobjectrequired
Fields
topobject | null
lineStyle
lineStylestringrequired
lineWeightPtnumberrequired
colorstringrequired
Variant 2

No fields.

bottomobject | null
lineStyle
lineStylestringrequired
lineWeightPtnumberrequired
colorstringrequired
Variant 2

No fields.

leftobject | null
lineStyle
lineStylestringrequired
lineWeightPtnumberrequired
colorstringrequired
Variant 2

No fields.

rightobject | null
lineStyle
lineStylestringrequired
lineWeightPtnumberrequired
colorstringrequired
Variant 2

No fields.

insideHobject | null
lineStyle
lineStylestringrequired
lineWeightPtnumberrequired
colorstringrequired
Variant 2

No fields.

insideVobject | null
lineStyle
lineStylestringrequired
lineWeightPtnumberrequired
colorstringrequired
Variant 2

No fields.

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
  • INVALID_INPUT

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