Document apiReferenceLists
lists.join
Merge two adjacent list sequences into one.
mutates documentdry runconditional
doc.lists.join(…)Expected result
Returns a ListsJoinResult with the resulting listId of the merged sequence.
Inputs
targetListItemAddressrequiredFields
kind"block"requirednodeType"listItem"requirednodeIdstringrequiredstoryStoryLocatorStory 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"requiredstoryType"body"requiredheaderFooterSlot
kind"story"requiredstoryType"headerFooterSlot"requiredsectionSectionAddressrequiredheaderFooterKind"header" | "footer"requiredvariant"default" | "first" | "even"requiredresolution"effective" | "explicit"onWrite"materializeIfInherited" | "editResolvedPart" | "error"headerFooterPart
kind"story"requiredstoryType"headerFooterPart"requiredrefIdstringrequiredfootnote
kind"story"requiredstoryType"footnote"requirednoteIdstringrequiredendnote
kind"story"requiredstoryType"endnote"requirednoteIdstringrequiredtextbox
kind"story"requiredstoryType"textbox"requiredtextboxIdstringrequireddirection"withPrevious" | "withNext"requiredResult
Output fields
true
successtruerequiredlistIdstringrequiredfalse
successfalserequiredfailureobjectrequiredFields
code"INVALID_TARGET" | "NO_ADJACENT_SEQUENCE" | "INCOMPATIBLE_DEFINITIONS" | "ALREADY_SAME_SEQUENCE"requiredmessagestringrequireddetailsunknownFailures
Pre-apply throws
TARGET_NOT_FOUNDCAPABILITY_UNAVAILABLEINVALID_TARGET
Non-applied receipt codes
INVALID_TARGETNO_ADJACENT_SEQUENCEINCOMPATIBLE_DEFINITIONS
1 more codes
ALREADY_SAME_SEQUENCE
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