Update an outbound SIP trunk

View as Markdown

Partial update; address and transport cannot be changed (delete and recreate instead). Removing a caller ID still used by a live campaign, as an agent’s transfer source, or attached as an agent’s caller ID returns 409 naming what uses it. Updating cpsLimit applies to every trunk on the same carrier address.

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Path parameters

trunkIdstringRequired

Request

All fields optional; only the fields present are updated. address and transport are not accepted. An empty body returns 400 (“Nothing to update”); numbers: [] returns 400 (“An outbound trunk needs at least one caller ID number”).

namestringOptional<=120 characters
numberslist of stringsOptional

Replaces the caller-ID list. E.164 with leading +.

mediaEncryptionenumOptional
Allowed values:
destinationCountrystringOptional=2 characters
cpsLimitintegerOptional1-50
authUsernamestringOptional
authPasswordstringOptional

Response

Updated trunk
statusbooleanOptional
dataobjectOptional

Errors

404
Not Found Error
409
Conflict Error