> ## 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.

# contentControls.choiceList.setItems

> Replace the list items of a comboBox or dropDownList content control.

## Summary

Replace the list items of a comboBox or dropDownList content control.

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

## Expected result

Returns a ContentControlMutationResult; reports NO\_OP if items unchanged.

## Input fields

| Field | Type | Required | Description |
| - | - | - | - |
| `items` | object\[] | yes | |
| `target` | object(nodeType="sdt") | yes | |
| `target.kind` | enum | yes | `"block"`, `"inline"` |
| `target.nodeId` | string | yes | |
| `target.nodeType` | `"sdt"` | yes | Constant: `"sdt"` |

### Example request

```json theme={null}
{
  "items": [
    {}
  ],
  "target": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "sdt"
  }
}
```

## Output fields

### Variant 1 (success=true)

| Field | Type | Required | Description |
| - | - | - | - |
| `contentControl` | object(nodeType="sdt") | yes | |
| `contentControl.kind` | enum | yes | `"block"`, `"inline"` |
| `contentControl.nodeId` | string | yes | |
| `contentControl.nodeType` | `"sdt"` | yes | Constant: `"sdt"` |
| `success` | `true` | yes | Constant: `true` |
| `updatedRef` | object(nodeType="sdt") | no | |
| `updatedRef.kind` | enum | no | `"block"`, `"inline"` |
| `updatedRef.nodeId` | string | no | |
| `updatedRef.nodeType` | `"sdt"` | no | Constant: `"sdt"` |

### Variant 2 (success=false)

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

### Example response

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

## Pre-apply throws

* `TARGET_NOT_FOUND`
* `INVALID_TARGET`
* `AMBIGUOUS_TARGET`
* `INVALID_INPUT`
* `LOCK_VIOLATION`
* `REVISION_MISMATCH`
* `CAPABILITY_UNAVAILABLE`
* `TYPE_MISMATCH`

## Non-applied failure codes

* `NO_OP`

## Raw schemas

> [accordion] Raw input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "items": {
>       "items": {
>         "type": "object"
>       },
>       "type": "array"
>     },
>     "target": {
>       "additionalProperties": false,
>       "properties": {
>         "kind": {
>           "enum": [
>             "block",
>             "inline"
>           ]
>         },
>         "nodeId": {
>           "type": "string"
>         },
>         "nodeType": {
>           "const": "sdt"
>         }
>       },
>       "required": [
>         "kind",
>         "nodeType",
>         "nodeId"
>       ],
>       "type": "object"
>     }
>   },
>   "required": [
>     "target",
>     "items"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw output schema
>
> ```json theme={null}
> {
>   "oneOf": [
>     {
>       "additionalProperties": false,
>       "properties": {
>         "contentControl": {
>           "additionalProperties": false,
>           "properties": {
>             "kind": {
>               "enum": [
>                 "block",
>                 "inline"
>               ]
>             },
>             "nodeId": {
>               "type": "string"
>             },
>             "nodeType": {
>               "const": "sdt"
>             }
>           },
>           "required": [
>             "kind",
>             "nodeType",
>             "nodeId"
>           ],
>           "type": "object"
>         },
>         "success": {
>           "const": true
>         },
>         "updatedRef": {
>           "additionalProperties": false,
>           "properties": {
>             "kind": {
>               "enum": [
>                 "block",
>                 "inline"
>               ]
>             },
>             "nodeId": {
>               "type": "string"
>             },
>             "nodeType": {
>               "const": "sdt"
>             }
>           },
>           "required": [
>             "kind",
>             "nodeType",
>             "nodeId"
>           ],
>           "type": "object"
>         }
>       },
>       "required": [
>         "success",
>         "contentControl"
>       ],
>       "type": "object"
>     },
>     {
>       "additionalProperties": false,
>       "properties": {
>         "failure": {
>           "$ref": "#/$defs/ReceiptFailure"
>         },
>         "success": {
>           "const": false
>         }
>       },
>       "required": [
>         "success",
>         "failure"
>       ],
>       "type": "object"
>     }
>   ]
> }
> ```

> [accordion] Raw success schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "contentControl": {
>       "additionalProperties": false,
>       "properties": {
>         "kind": {
>           "enum": [
>             "block",
>             "inline"
>           ]
>         },
>         "nodeId": {
>           "type": "string"
>         },
>         "nodeType": {
>           "const": "sdt"
>         }
>       },
>       "required": [
>         "kind",
>         "nodeType",
>         "nodeId"
>       ],
>       "type": "object"
>     },
>     "success": {
>       "const": true
>     },
>     "updatedRef": {
>       "additionalProperties": false,
>       "properties": {
>         "kind": {
>           "enum": [
>             "block",
>             "inline"
>           ]
>         },
>         "nodeId": {
>           "type": "string"
>         },
>         "nodeType": {
>           "const": "sdt"
>         }
>       },
>       "required": [
>         "kind",
>         "nodeType",
>         "nodeId"
>       ],
>       "type": "object"
>     }
>   },
>   "required": [
>     "success",
>     "contentControl"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw failure schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "failure": {
>       "$ref": "#/$defs/ReceiptFailure"
>     },
>     "success": {
>       "const": false
>     }
>   },
>   "required": [
>     "success",
>     "failure"
>   ],
>   "type": "object"
> }
> ```


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