question

Jackson Khan avatar image
Jackson Khan asked Phong Vu answered

API to unassign phone number from an extension?

Is there an API to unassign phone numbers/ move phone numbers to inventory?


I tried this POST command to remove a phone number from an extension: https://developers.ringcentral.com/api-reference/Phone-Numbers/addNumbersToInventoryV2 but it gave a forbidden warning saying I'm out of licenses.


1700510805201.png


Is this the wrong command and is there a right one?

rest api
1700510805201.png (16.0 KiB)
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered

That API is not for adding assigned phone numbers to the account number inventory

"Adds phone numbers to the account Inventory as unassigned. Currently we support the following three enum values: 'Inventory', 'InventoryPartnerBusinessMobileNumber' and 'PartnerBusinessMobileNumber'. Later we may support some other values like 'ForwardedNumber', etc."

So right now, it's not possible to add an assigned phone number back to the inventory.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys