Update trunk origination URI
update_origination_uriChange a Vobiz origination URI's label and routing priority to promote a failover destination to primary. Requires uri_id, name, priority, and confirmation.
Instructions
Replace a Vobiz origination URI's label and priority, for example to promote a failover destination to primary. Both name and priority are required; resend the current value you keep. To point at a different host, create a new origination URI and delete this one; weight and enabled are managed in the Vobiz console. Read current values with list_origination_uris first. A priority change applies to the next outbound call on every trunk using the URI. An unknown uri_id raises not_found. Gated by VOBIZ_ENABLE_PROVISIONING and confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Label of 1-255 characters (resend the current one to keep it). Returned by Vobiz as `description`. | |
| uri_id | Yes | Origination URI UUID: the id from list_origination_uris or create_origination_uri. Unknown ids raise not_found. | |
| confirm | Yes | Must be true, set only after the user explicitly approved: changing this origination URI. | |
| priority | Yes | Routing priority, 1-1000: lower is tried first (1 = primary, 2+ = failover). URIs sharing a priority split traffic by weight. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True on success. On a failure the result is isError with ok: false plus `error` (kind), `message`, `retryable` and sometimes `http_status`. | |
| updated | No | True when the change was applied by this call. | |
| http_status | No | HTTP status Vobiz answered with. | |
| origination_uri | No | The URI after the change. |