Phone Numbers
Assign Phone Number
Assigns or reassigns a phone number as a company or extension number.
Assign scenarios supported:
- from Inventory to a company number;
- from Inventory to an extension number.
Reassign scenarios supported:
- from an extension to another extension;
- from an extension to a company number;
- from a company number to an extension.
patch/restapi/v2/accounts/{accountId}/phone-numbers/{phoneNumberId}
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
Response
Successful response
Example response
{
"id": "1162820004",
"phoneNumber": "+16501234567",
"tollType": "Toll",
"extension": {
"id": "1234567",
"extensionNumber": "205"
}
}