Skip to main content

Summary

Insert a new table of contents at the target position.
  • Operation ID: create.tableOfContents
  • API member path: editor.doc.create.tableOfContents(...)
  • Mutates document: yes
  • Idempotency: non-idempotent
  • Supports tracked mode: no
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

Returns a CreateTableOfContentsResult with the new TOC block address.

Input fields

Example request

Output fields

Variant 1 (success=true)

Variant 2 (success=false)

Example response

Pre-apply throws

  • INVALID_TARGET
  • TARGET_NOT_FOUND
  • INVALID_INPUT
  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • NO_OP
  • INVALID_INSERTION_CONTEXT

Raw schemas