question

Anuja B avatar image
Anuja B asked

Handling Team Deletion During Bot uninstallation

I developed a bot, so during installation, I created some teams using the API (when the installation webhook is received, I call the team creation API using bot credentials). The admin of the team is the bot. However, when uninstallation happens, I need to delete these teams as well. How can I do that? The uninstallation hook is received after that has happened, so at that time, we can't trigger the delete team API using bot credentials, since the uninstallation already occurred. Is there any API to make someone else an admin, or any way we can trigger it before the uninstallation hook? What is the solution?

developer sandboxmessageringcentral app
1 |3000

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

0 Answers

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