Phone Numbers
Replace Phone Number
Replaces (swaps) phone numbers from Inventory with the main, company, direct or company fax numbers. This method is used to replace temporary numbers when the porting process is complete.
post/restapi/v2/accounts/{accountId}/phone-numbers/{phoneNumberId}/replace
Path parameters
accountIdstring required
Internal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)
phoneNumberIdstring required
Internal unique identifier of a phone number
Example:1162820004
Internal identifier of a phone number
Request body
Example request
{
"targetPhoneNumberId": "1162820004"
}Response
Success
Example response
{
"id": "1162820004",
"phoneNumber": "+16501234567",
"tollType": "Toll",
"extension": {
"id": "1234567",
"extensionNumber": "205"
}
}