> ## Documentation Index
> Fetch the complete documentation index at: https://superdoc-caio-pizzol-docs-ai-core-preset.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# lists.detach

> Remove numbering properties from list items, converting them to plain paragraphs.

## Summary

Remove numbering properties from list items, converting them to plain paragraphs.

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

## Expected result

Returns a ListsDetachResult confirming the item was converted to a plain paragraph.

## 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"` |

### Example request

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

## Output fields

### Variant 1 (success=true)

| Field                | Type             | Required | Description             |
| -------------------- | ---------------- | -------- | ----------------------- |
| `paragraph`          | ParagraphAddress | yes      | ParagraphAddress        |
| `paragraph.kind`     | `"block"`        | yes      | Constant: `"block"`     |
| `paragraph.nodeId`   | string           | yes      |                         |
| `paragraph.nodeType` | `"paragraph"`    | yes      | Constant: `"paragraph"` |
| `success`            | `true`           | yes      | Constant: `true`        |

### Variant 2 (success=false)

| Field             | Type    | Required | Description        |
| ----------------- | ------- | -------- | ------------------ |
| `failure`         | object  | yes      |                    |
| `failure.code`    | enum    | yes      | `"INVALID_TARGET"` |
| `failure.details` | any     | no       |                    |
| `failure.message` | string  | yes      |                    |
| `success`         | `false` | yes      | Constant: `false`  |

### Example response

```json theme={null}
{
  "paragraph": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "paragraph"
  },
  "success": true
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`
* `CAPABILITY_UNAVAILABLE`
* `INVALID_TARGET`

## Non-applied failure codes

* `INVALID_TARGET`

## Raw schemas

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

<Accordion title="Raw output schema">
  ```json theme={null}
  {
    "oneOf": [
      {
        "additionalProperties": false,
        "properties": {
          "paragraph": {
            "$ref": "#/$defs/ParagraphAddress"
          },
          "success": {
            "const": true
          }
        },
        "required": [
          "success",
          "paragraph"
        ],
        "type": "object"
      },
      {
        "additionalProperties": false,
        "properties": {
          "failure": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "enum": [
                  "INVALID_TARGET"
                ]
              },
              "details": {},
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "success": {
            "const": false
          }
        },
        "required": [
          "success",
          "failure"
        ],
        "type": "object"
      }
    ]
  }
  ```
</Accordion>

<Accordion title="Raw success schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "paragraph": {
        "$ref": "#/$defs/ParagraphAddress"
      },
      "success": {
        "const": true
      }
    },
    "required": [
      "success",
      "paragraph"
    ],
    "type": "object"
  }
  ```
</Accordion>

<Accordion title="Raw failure schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "failure": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "enum": [
              "INVALID_TARGET"
            ]
          },
          "details": {},
          "message": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "success": {
        "const": false
      }
    },
    "required": [
      "success",
      "failure"
    ],
    "type": "object"
  }
  ```
</Accordion>
