/api/routesCreate a route
Creates a route configuration for routing traffic through specified peers or peer groups. Supply the required route fields, and use either network or domains to define the route destination; those fields conflict with each other.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Route configuration. The schema requires id, description, network_id, enabled, metric, masquerade, groups, and keep_route; id is required but has no property definition in the supplied schema.
A 400 is returned for a malformed request, a 401 when authentication is required but missing or invalid, a 403 when the operation is forbidden, and a 500 for an internal server error. The schema requires id, description, network_id, enabled, metric, masquerade, groups, and keep_route; metric must be between 1 and 9999, and network_id must contain 1 to 40 characters. domains and network cannot be supplied together, and peer and peer_groups cannot be supplied together.