> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superdoc.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# lists.canContinuePrevious

> Check whether the target sequence can continue numbering from a previous compatible sequence.

## Summary

Check whether the target sequence can continue numbering from a previous compatible sequence.

* Operation ID: `lists.canContinuePrevious`
* API member path: `editor.doc.lists.canContinuePrevious(...)`
* Mutates document: `no`
* Idempotency: `idempotent`
* Supports tracked mode: `no`
* Supports dry run: `no`
* Deterministic target resolution: `yes`

## Expected result

Returns a ListsCanContinuePreviousResult indicating feasibility.

## Input fields

| Field | Type | Required | Description |
| - | - | - | - |
| `target` | ListItemAddress | yes | ListItemAddress |
| `target.kind` | `"block"` | yes | Constant: `"block"` |
| `target.nodeId` | string | yes | |
| `target.nodeType` | `"listItem"` | yes | Constant: `"listItem"` |
| `target.story` | StoryLocator | no | StoryLocator |

### Example request

```json theme={null}
{
  "target": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "listItem",
    "story": {
      "kind": "story",
      "storyType": "body"
    }
  }
}
```

## Output fields

| Field | Type | Required | Description |
| - | - | - | - |
| `canContinue` | boolean | yes | |
| `previousListId` | string | no | |
| `reason` | enum | no | `"NO_PREVIOUS_LIST"`, `"INCOMPATIBLE_DEFINITIONS"`, `"ALREADY_CONTINUOUS"` |

### Example response

```json theme={null}
{
  "canContinue": true,
  "previousListId": "example",
  "reason": "NO_PREVIOUS_LIST"
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`
* `INVALID_TARGET`
* `INVALID_INPUT`

## Non-applied failure codes

* None

## Raw schemas

> [accordion] Raw input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "target": {
>       "$ref": "#/$defs/ListItemAddress"
>     }
>   },
>   "required": [
>     "target"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw output schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "canContinue": {
>       "type": "boolean"
>     },
>     "previousListId": {
>       "type": "string"
>     },
>     "reason": {
>       "enum": [
>         "NO_PREVIOUS_LIST",
>         "INCOMPATIBLE_DEFINITIONS",
>         "ALREADY_CONTINUOUS"
>       ]
>     }
>   },
>   "required": [
>     "canContinue"
>   ],
>   "type": "object"
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.