Docs

Change properties of trunks

https://api.apifonica.com/v2/accounts/{accountSID}/trunks/{trunkSID}

Overview

To change trunks’s properties you need to make PUT request to /accounts/{accountSID}/trunks/{trunkSID} and specify new values for the parameters listed in the table below.

Parameters to update

ParameterRequiredDescriptionDefault Value
name
yes

tname of the trunks

none
ip
yes

IP address of your PBX

none

Request example

The following cURL request demonstrates updating account status.

Curl –X PUT https://api.apifonica.com/v2/accounts/{accountSID}/trunks/{trunkSID} \
-H 'Content-Type: application/json' \
-d '{
      "name": "MyPBX"
    }' \
-u {accountSid}:{authToken}

Response example

{
  "status_code": 201,
  "status_message": "OK",
  "uri": "https://api.apifonica.com/v2/accounts/{accountSID}/trunks/{trunkSID}"
}