Update a SIP trunk
Replaces the configuration of the SIP trunk identified by id. Omitted fields revert to their defaults.
Path parameters
The unique ID of the SIP trunk.
Request body
Example request
{
"label": "My trunk",
"password": "4r=h;EaCB85QNtr2",
"host_request": {
"host": "127.0.0.1"
},
"callerid": "13132847320",
"allowed_ips": [
{
"ip": "127.0.0.1"
}
],
"didinfo_enabled": true,
"call_restrict": true,
"call_limit": 3600,
"cost_limit": true,
"max_call_cost": 0.18,
"max_channels": 2,
"rewrite_enabled": true,
"rewrite_prefix": "1",
"call_recording_enabled": true,
"transcription_enabled": true,
"transcription_threshold": 10,
"machine_detection_enabled": true,
"encrypted_media": true
}Response
Returns the updated SIP trunk.
Example response
{
"id": 293,
"name": "67758",
"callerid": "12345678900",
"label": "My trunk",
"allowed_ips": [
{
"id": 6712,
"ip": "127.0.0.1"
}
],
"max_channels": 2,
"cost_limit": true,
"max_call_cost": "0.18",
"call_limit": 3600,
"didinfo_enabled": true,
"rewrite_enabled": true,
"rewrite_prefix": "1",
"call_recording_enabled": true,
"machine_detection_enabled": true,
"transcription_threshold": 10,
"created_at": "2023-05-16T17:13:25.000Z",
"host": "dynamic",
"multiple_numbers": true,
"encrypted_media": true,
"passthrough": true,
"access_token": "123easwqe321132"
}Changes
Changed in 5 of the 50 revisions of this API.38
- ○
added
SIPTrunkResponseto the response bodyallOflist for the response status200response-body-all-of-added
- ○
removed
SipTrunkResponsefrom the response bodyallOflist for the response status200response-body-all-of-removed
This revision also has 42 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
bearerAuthwas added to the APIapi-security-added
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
the response property
allOf[subschema #1: SipTrunkResponse]/access_tokenbecame nullable for the status200response-property-became-nullable
- ▲
the response property
allOf[subschema #1: SipTrunkResponse]/calleridbecame nullable for the status200response-property-became-nullable
- ○
added the optional property
allOf[subschema #1: SipTrunkResponse]/passthroughto the response with the200statusresponse-optional-property-added
- ▲
- ▲
the request property
allowed_ipsbecame not nullablerequest-property-became-not-nullable
- ○
api operation id
UpdateaSIPtrunkremoved and replaced withsip_trunks_updateapi-operation-id-removed
- ○
added
SipTrunkResponseto the response bodyallOflist for the response status200response-body-all-of-added
- ○
removed
TrunksResponsefrom the response bodyallOflist for the response status200response-body-all-of-removed
This revision also has 163 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○