Use this method to update SIP trunk configuration.
This endpoint requires authentication.
PUT /trunks/{id}
HTTP Status Code | Error Description | Exception Class |
---|---|---|
403 | Request failed. The feature is disabled for the account. |
|
404 | An object with the specified ID is not found. |
|
curl -X PUT \
--url 'https://api.wavix.com/v1/trunks/100?appid=appid' \
-H 'Accept: application/json'\
-H 'Content-Type: application/json' \
--data-raw '{
"label": "My trunk",
"password": "4r=h;EaCB85QNtr2",
"callerid": "13132847320",
"ip_restrict": false,
"didinfo_enabled": true,
"call_restrict": false,
"cost_limit": false,
"channels_restrict": false,
"rewrite_enabled": true,
"passthrough": false
}'