Docs

Change properties of endpoint

https://api.apifonica.com/v2/accounts/{accountSID}/endpoints/{endpointSID}

Overview

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

Parameters to update

ParameterRequiredDescriptionDefault Value
name
yes

tname of the endpoint

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}/endpoints/{endpointSID} \
-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}/endpoints/{endpointSID}"
}