Update a list
update_listChange a list's fields; fields left out are left as they are. A new schema doesn't re-check existing items, but applies to later writes and restores. New rules apply from the next write, and the stored tests must pass first; rules: null removes them. readonly: true blocks writes to the list, its items and its indexes. 1 request.
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": {
"list": "<list>"
},
"name": "update_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list | Yes | The list: its id or pathName | |
| name | No | The list's name | |
| tags | No | Tags (at most 20). Replaces the existing tags | |
| rules | No | Write rules, in the JSONPad rules language, checked on every item write made with an API token; null removes them. Check them first with the JSONPad docs server's check_write_rules | |
| pinned | No | ||
| schema | No | A JSON schema every item's data must match, or null for none | |
| pathName | No | A unique name to use in URLs instead of the id (letters, digits, - and _) | |
| readonly | No | Refuse writes to the list, its items and indexes | |
| realtime | No | Send realtime events for the list's changes | |
| activated | No | Deactivated lists are invisible to tokens | |
| indexable | No | Allow listing and searching its items with a token. A new list is not indexable unless this is set | |
| protected | No | Refuse to delete the list while it has items | |
| rulesTests | No | Tests the rules must pass before they're saved, or null for none | |
| description | No | What the list is for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list | Yes | ||
| ruleWarnings | No |