Update an item
cms_items_updatePatches an item; omitted fields are left untouched. Keys in data are merged into the existing values and validated the same way as on create, while each key provided in references, images, or files replaces that field’s value wholesale — pass null (or [] for multi-valued fields) to clear an optional field. slug renames the item’s slug; slug and unique-field collisions fail with a conflict. Pass position: "first" or "last", or "before" / "after" together with anchorItemId, to move the item within the collection’s manual order — the default sort for item lists.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"itemId": "<itemId>"
},
"name": "cms_items_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| slug | No | New slug for the item — a rename. Omit to keep the current slug. Must be unique among the collection’s active items. | |
| files | No | ||
| images | No | ||
| itemId | Yes | ||
| position | No | Moves the item within the collection’s manual order — the default sort for item lists. Omit to leave the order unchanged. `"before"` / `"after"` require `anchorItemId`. | |
| references | No | ||
| anchorItemId | No | Sibling item to move against when `position` is `"before"` or `"after"`. |