Skip to main content
Question

Is there an API to remove a direct phone number from a user/ extension back to inventory?

  • December 30, 2024
  • 8 replies
  • 61 views

Forum|alt.badge.img

Hi, 

 

When we offboard, we usually have an automation to disable the user, but I’m trying to find out how to move an assigned number they have back to our inventory pool to use for someone else in the future. 

 

I can’t seem to find an API that does this, not sure if I’m not looking for the right thing. 

8 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2328 replies
  • December 31, 2024

Disable a user will not delete nor release the resources of that user. You should consider to delete the user and keep all the user resources in the company inventory. In that case, call this API accordingly.


Forum|alt.badge.img
  • Author
  • Known Participant
  • 13 replies
  • December 31, 2024

so there is no one API to move an assigned number back to inventory? 


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2328 replies
  • December 31, 2024
jackson-1 wrote:

so there is no one API to move an assigned number back to inventory? 

I am not aware of any public API to do that. I don’t see any option from the account admin portal either.


Forum|alt.badge.img
  • Author
  • Known Participant
  • 13 replies
  • December 31, 2024

the option in account admin portal is under Phone numbers - numbers in use - check the number and then click on “Move to inventory” 

 

 


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2328 replies
  • December 31, 2024
jackson-1 wrote:

the option in account admin portal is under Phone numbers - numbers in use - check the number and then click on “Move to inventory” 

 

 

Oh, my number list is long so it was hidden when I scrolled down. There could be an internal API to do that. I will check with the eng. team later.


Forum|alt.badge.img
  • Author
  • Known Participant
  • 13 replies
  • January 16, 2025

Hi, wondering if there was any updates on this? Is there an api to unassign a number from an extension? 


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2328 replies
  • January 17, 2025
jackson-1 wrote:

Hi, wondering if there was any updates on this? Is there an api to unassign a number from an extension? 

Sorry for the delayed response.

I can’t find an API to move phone numbers back to the inventory. However, since you mentioned about off-boarding a user, I am thinking of using this API to delete a user and set the flag keepAssetsInInventory = true.

Would that work for you?


Forum|alt.badge.img
  • Author
  • Known Participant
  • 13 replies
  • January 17, 2025

Ok, I’ll test it out, thanks! 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings