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

Parameter
Required
Description
Default Value
name
yes

name of the trunk

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}"
}

By visiting the Apifonica website you agree with our use of cookies. Read our Cookie Policy here.