Update a collection
update_collectionOn one site of the account, named in site. A collection's name, levels, slug, description or the fields of its levels, any subset. The levels are the whole list, top first; a level cannot go while a page sits at its depth, and a renamed level keeps its fields. A new slug moves every page's address in it.
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": {
"site": "<site>",
"collection": "<collection>"
},
"name": "update_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| site | Yes | The site to work on, as list_sites names it | |
| slug | No | ||
| fields | No | The fields of each level's pages, by level name: {"Spot": [{"name": "location", "type": "point", "label": "Location"}, {"name": "break", "type": "choice", "label": "Break", "options": ["Beach", "Reef", "Point"]}]}. A level left out keeps its fields; [] removes them. Up to 20 a level | |
| levels | No | The whole list, top first | |
| collection | Yes | Its id, slug or name | |
| description | No |