Docs

Update Phone Number Parameters

/accounts/{accountSID}/numbers/{numberSID}

Overview

Phone number properties are changed by making the PUT request to /accounts/{accountSID}/numbers/{numberSID}.

The request must contain new values for the parameters listed below.

Input parameters

Parameter

Required?

Description

Default value

controller

yes

URL which will be used to make a request for an XML controller file.

N/A

method

yes

The request method.

POST

sip_password

yes

SIP password used for making calls by using the SIP protocol.

Important This parameter makes sense only for the phone numbers with the SIP type.

N/A

 

Request example

The following example demonstrates updating the request method for the number.

curl –X PUT ‘https://api.apico.net/v2/accounts/{accountSID}/numbers/{numberSID}’ \
-H ‘Content-Type: application/json’ \
-d ‘{ \
     “method”: ”GET” \
    }’ \
-u {accountSID}:{authToken}

Response example

{
    "status_code": 200,
    "status_message": "OK",
    "uri": "/accounts/{accountSID}/numbers/{numberSID}"
}