route_create
Create a new route for an Edge Routine to manage traffic routing and security rules for specific site paths or domains.
Instructions
Create a new route associated with an Edge Routine (ER).
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": {
"siteId": "<siteId>",
"mode": "<mode>",
"rule": "<rule>",
"routineName": "<routineName>",
"routeName": "<routeName>",
"bypass": "<bypass>",
"routeEnable": "<routeEnable>"
},
"name": "route_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | The ID of the site | |
| mode | Yes | The mode of the route, default is simple | |
| route | No | The route of the route, if mode is simple, this field is required. For example: test.example.com/* | |
| rule | Yes | The rule of the route, if mode is custom, this field is required | |
| routineName | Yes | The name of the routine | |
| routeName | Yes | The name of the route, use to identify the route. For example: test-route | |
| bypass | Yes | The bypass of the route, default is off | |
| routeEnable | Yes | The enable of the route, default is on | |
| sequence | No | The sequence of the route, if not passed, default is the current number of routes |