updateItem
Modify an existing item in a Directus collection by specifying the item’s ID and updated data. Enables precise updates within the MCP server for CMS management.
Instructions
Update an existing item in a collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| data | Yes | Updated item data | |
| id | Yes | Item ID | |
| token | No | Authentication token (default from config) | |
| url | No | Directus API URL (default from config) |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name",
"type": "string"
},
"data": {
"description": "Updated item data",
"type": "object"
},
"id": {
"description": "Item ID",
"type": "string"
},
"token": {
"description": "Authentication token (default from config)",
"type": "string"
},
"url": {
"description": "Directus API URL (default from config)",
"type": "string"
}
},
"required": [
"collection",
"id",
"data"
],
"type": "object"
}