Update an inbound SIP trunk

View as Markdown

Partial update; same fields and rules as create. Requires an admin-role key. The merged result must still carry at least one phone number or allowed caller number; peer addresses alone do not satisfy it (400 “A dedicated trunk needs at least one phone number…”). An empty body returns 400 (“Nothing to update”).

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.

namestringOptional<=120 characters
numberslist of stringsOptional

Replaces the number list. E.164 with leading +.

allowedAddresseslist of stringsOptional
allowedNumberslist of stringsOptional
mediaEncryptionenumOptional
Allowed values:
krispEnabledbooleanOptional
ringingTimeoutSecondsintegerOptional1-600
authUsernamestringOptional
authPasswordstringOptional

Response

Updated trunk
statusbooleanOptional
dataobjectOptional

Errors

404
Not Found Error
409
Conflict Error