Update a trunk
PUT/v1/trunks/:id
Partial update: only the fields sent change, every other field keeps its stored value; at least one field is required. contact_user, from_domain, from_user, direct_media and media_encryption can be cleared with null; host, port and secret cannot. name, type, inbound_identification and inbound_pattern.prefix cannot be changed and are rejected with 422, as are the engine fields. On fct and fctmvno trunks only the codec and call settings (allow, disallow, media_encryption, rel100, rtp_timeout, user_eq_phone, trust_id_inbound, send_pai, send_rpid, inband_progress) can change and any other field returns 422. Returns the updated trunk without its secret. Requires api_user|trunk_update.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 503
Updated trunk
Unauthenticated
Missing permission
The trunk does not exist, or belongs to another organization
Validation error, nothing to update, or a locked field on an fct/fctmvno trunk
The PBX is unreachable, or no PBX tenant is assigned to the organization