Document apiReferenceLists

lists.getStyle

Read the effective reusable style of a list, including instance-level overrides. Returns a ListStyle that can be applied to other lists via lists.applyStyle.

read-onlyidempotent
doc.lists.getStyle(…)

Expected result

Returns a ListsGetStyleResult containing the captured style.

Inputs

targetListItemAddressrequired
Fields
kind"block"required
nodeType"listItem"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
1 additional input field
levelsinteger[]

Result

Output fields
true
successtruerequired
styleobjectrequired
Fields
version1required
levelsobject[]required
false
successfalserequired
failureobjectrequired
Fields
code"INVALID_TARGET" | "INVALID_INPUT" | "LEVEL_OUT_OF_RANGE"required
messagestringrequired
detailsunknown

Failures

Pre-apply throws

  • TARGET_NOT_FOUND
  • INVALID_TARGET
  • INVALID_INPUT

Non-applied receipt codes

  • INVALID_TARGET
  • INVALID_INPUT
  • LEVEL_OUT_OF_RANGE

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