update_route
Modify existing MikroTik routes by updating parameters like gateway, destination address, distance, and more to adjust routing behavior.
Instructions
Updates a route.
Notes: route_id: "*N" or "N" from list output e.g. "*3" dst_address: CIDR e.g. "192.168.1.0/24" check_gateway: "ping" or "arp" distance: 1-255 Pass "" to routing_mark, vrf_interface, or pref_src to clear them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | ||
| device | No | ||
| comment | No | ||
| gateway | No | ||
| disabled | No | ||
| distance | No | ||
| pref_src | No | ||
| route_id | Yes | ||
| dst_address | No | ||
| routing_mark | No | ||
| target_scope | No | ||
| check_gateway | No | ||
| vrf_interface | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |