Bind Phone Number to Another Subaccount
/accounts/{accountSID}/numbers/{numberSID}
Overview
When you rent a number, it is bound to some account or subaccount.
To associate it with another subaccount or with a parent account, make the PUT request to /accounts/{accountSID}/numbers/{numberSID}.
You have to use authToken from master account to perform this operation.
The request must contain a new value for the parameter listed below.
Parameter |
Description |
Default value |
account_sid |
Target account identifier. Number will be associated with this account. |
current {account_sid} |
Request example
The following example demonstrates binding a number to another account.
curl –X PUT ‘https://api.apico.net/v2/accounts/{accountSID}/numbers/{numberSID}’ \ -H ‘Content-Type: application/json’ \ -d ‘{ \ “account_sid”: ”{accountSID}” \ }’ \ -u {accountSID}:{authToken}
Response example
{ "status_code": 200, "status_message": "OK", "uri": "/accounts/{accountSID}/numbers/{numberSID}" }