Update collection
update_collectionUpdate a collection by id or name to change its fields, schema, rules, indexes, or options, preserving existing field ids to keep data intact.
Instructions
Update an existing collection by id or name. Provide the fields to change in data. To modify the schema, pass the full fields array (existing field ids must be preserved to keep data). You can also update rules, indexes and options.
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": {
"idOrName": "<idOrName>",
"data": "<data>"
},
"name": "update_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Partial collection payload with the properties to update. | |
| idOrName | Yes | Collection id or name. |