SIP trunks
Update SIP trunk API
Change a SIP trunk’s settings via PATCH /trunk/trunks/. Only fields you send change; gateways, carrier IPs and numbers have their own endpoints.
PATCH
To change a gateway or a carrier IP, remove it and add the new one. To change which agent answers a number, use Assign agent to number.
Authorizations
Body
application/json
Send only the fields to change. Gateways, carrier IPs and numbers are managed through their own endpoints.
Response
The updated trunk
A SIP trunk with its gateways, carrier IPs, numbers and live status.
ready: calls have crossed the trunk and the carrier is not failing them.waiting_for_carrier: no call has crossed the trunk yet.degraded: the carrier failed three or more recent outbound calls with no answered call since.disabled:is_activeisfalse.
Available options:
ready, waiting_for_carrier, degraded, disabled