Update a magic route

Updates a magic route in place; fields you omit keep their current values. Only the fields below are writable and anything else in the body is ignored without an error, so extension_number, test_listeners and the created and updated timestamps cannot be set here. Setting enabled to true does not make a route live on its own — deploy it. fallback_destination is validated on its own path: it must resolve to a dialable extension or number or the whole request is rejected before anything is written, and saving it regenerates and reloads the live routing.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

ID of the magic route to update.

Body Params
string

Name for the route.

string | null

Free-text description of the route.

string | null

The routing program that runs when a call reaches this route. Stored exactly as sent and not checked here.

boolean

Enable flag. Setting it to true does not build the routing — use POST /api/v1/magic_routing/{id}/deploy.

routing_summary
object | null

Readable summary of the route: headline, a rules array of condition, action and priority, and lastUpdated.

string | null

Override the service endpoint that runs this route's program.

string | null

Where a call goes when the routing program picks no destination. Must resolve to a dialable extension or number, and saving it regenerates the live routing.

Responses
200

The route was updated.

401

Missing or invalid API key.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json