modx_virtualpage_update_route
Update a VirtualPage route by ID to change its path, handler, event, rank, method, active status, or properties. Use it to correct or reconfigure routing for dynamic MODX pages.
Instructions
Update a VirtualPage route by id.
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": {
"id": "<id>"
},
"name": "modx_virtualpage_update_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| rank | No | ||
| event | No | ||
| route | No | ||
| active | No | ||
| method | No | ||
| handler | No | ||
| event_name | No | ||
| properties | No | ||
| description | No | ||
| handler_name | No |