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

Parameter

Required?

Description

Default value

name

yes

name of the endpoint

none

ip

yes

IP address of your PBX

none

Description

Name of the endpoint

Description

IP address of your PBX

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”:200,
“status_message”: “OK”,
“uri”: “https://api.apifonica.com/v2/accounts/{accountSID}/endpoints/{endpointSID}”
}