patch
https://api.emaktalk.com/api/v1/numbers/
Updates a phone number's routing and settings. Fields you omit keep their current values.
Use it:
- Send only the fields you want to change.
- On an account that routes calls only through call flows, send
call_flow_uuidto attach the number to a call flow or move it to another one (see below).
Notes:
- Every change is recorded in the number's history.
- Routing changes take effect right away: the number's routing is rebuilt and reloaded.
- Sending
destination_actions, even with its current value, gives the number routing of its own and detaches it from its call flow (except on call-flows-only accounts, below). domain_uuid,provider_uuid,provider_verified,destination_enabledanddomain_nameare ignored, without an error.- Changing the number, its prefix or its match pattern is refused (403) if the result would match a number another account already uses. Re-sending the values they already hold is fine.
- If a step after saving fails, the change is rolled back where possible, and the response says whether that worked.
Accounts that route calls only through call flows:
- Every enabled number stays attached to a call flow.
call_flow_uuidattaches the number first; the rest of your update is saved after. The response'sattached_flownames the flow.- A change that would leave an enabled number without a call flow needs
call_flow_uuid. That's clearing its routing, or changing anything on a number that has no call flow yet. Without it, you get 409flow_requiredand nothing changes. - No published call flow yet? The number is attached to a new call flow named "Default call flow", which simply hangs up. You can edit it like any other call flow.
- The routing fields can't give the number routing of its own here (409
legacy_routing_retired). - Disabled numbers never need a call flow, and neither does changing only
destination_hold_music.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
401Missing or invalid API key.
