Document apiReferenceToc
toc.configure
Update the configuration switches of a table of contents.
mutates documentdry runconditional
doc.toc.configure(…)Expected result
Returns a TocMutationResult with the updated TOC address on success, or a failure code on no-op.
Inputs
targetobjectrequiredFields
kind"block"requirednodeType"tableOfContents"requirednodeIdstringrequiredpatchobjectrequiredFields
outlineLevelsobjectFields
fromintegerrequiredtointegerrequireduseAppliedOutlineLevelbooleantcFieldIdentifierstringtcFieldLevelsobjectFields
fromintegerrequiredtointegerrequiredhyperlinksbooleanhideInWebViewbooleanomitPageNumberLevelsobjectFields
fromintegerrequiredtointegerrequiredseparatorstringincludePageNumbersbooleantabLeader"none" | "dot" | "hyphen" | "underscore" | "middleDot"rightAlignPageNumbersbooleanResult
Output fields
true
successtruerequiredtocobjectrequiredFields
kind"block"requirednodeType"tableOfContents"requirednodeIdstringrequiredfalse
successfalserequiredfailureobjectrequiredFields
code"NO_OP" | "INVALID_TARGET" | "TARGET_NOT_FOUND" | "CAPABILITY_UNAVAILABLE" | "INVALID_INSERTION_CONTEXT" | "PAGE_NUMBERS_NOT_MATERIALIZED"requiredmessagestringrequireddetailsunknownFailures
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETINVALID_INPUT
1 more codes
CAPABILITY_UNAVAILABLE
Non-applied receipt codes
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