update_item
Modify an existing item in a Directus collection by providing its ID and updated data. For versioned collections, write to a draft version to avoid editing published items directly.
Instructions
Update an existing item in a collection. In versioned collections the published item is read-only — target a draft version instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item ID | |
| data | Yes | Updated data | |
| version | No | Draft version key to write into. Published items in versioned collections cannot be edited directly. | |
| collection | Yes | Collection name |