Skip to main content

Summary

Restart numbering at the target list item with a specific value. If the item is mid-sequence, it is separated first.
  • Operation ID: lists.restartAt
  • API member path: editor.doc.lists.restartAt(...)
  • Mutates document: yes
  • Idempotency: non-idempotent
  • Supports tracked mode: no
  • Supports dry run: yes
  • Deterministic target resolution: yes

Expected result

Returns a ListsMutateItemResult receipt.

Input fields

FieldTypeRequiredDescription
startAtintegeryes
targetListItemAddressyesListItemAddress
target.kind"block"yesConstant: "block"
target.nodeIdstringyes
target.nodeType"listItem"yesConstant: "listItem"
target.storyStoryLocatornoStoryLocator

Example request

Output fields

Variant 1 (success=true)

FieldTypeRequiredDescription
itemListItemAddressyesListItemAddress
item.kind"block"yesConstant: "block"
item.nodeIdstringyes
item.nodeType"listItem"yesConstant: "listItem"
item.storyStoryLocatornoStoryLocator
successtrueyesConstant: true

Variant 2 (success=false)

FieldTypeRequiredDescription
failureobjectyes
failure.codeenumyes"NO_OP", "INVALID_TARGET", "INVALID_INPUT"
failure.detailsanyno
failure.messagestringyes
successfalseyesConstant: false

Example response

Pre-apply throws

  • TARGET_NOT_FOUND
  • CAPABILITY_UNAVAILABLE
  • INVALID_TARGET
  • INVALID_INPUT

Non-applied failure codes

  • NO_OP
  • INVALID_TARGET
  • INVALID_INPUT

Raw schemas