curl -X POST https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/deps/reinstall \
-H "Authorization: Bearer sess_..."
{
"success": true,
"data": {
"removed": ["node_modules", ".pkg_sig"]
},
"message": "Dependencies cleared (node_modules, .pkg_sig). Start the bot to reinstall."
}
{
"success": false,
"error": "Bot must be offline before reinstalling dependencies. Stop the bot first."
}
Bots
Reinstall Dependencies
Clears installed dependencies so they are fully reinstalled on the next bot start. The bot must be offline.
POST
/
bots
/
{id}
/
deps
/
reinstall
curl -X POST https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/deps/reinstall \
-H "Authorization: Bearer sess_..."
{
"success": true,
"data": {
"removed": ["node_modules", ".pkg_sig"]
},
"message": "Dependencies cleared (node_modules, .pkg_sig). Start the bot to reinstall."
}
{
"success": false,
"error": "Bot must be offline before reinstalling dependencies. Stop the bot first."
}
Path Parameters
string
required
UUID of the bot. Must be offline.
What gets removed
| Language | Files/folders removed |
|---|---|
nodejs | node_modules/, .pkg_sig |
python | __pycache__/, venv/, .req_sig |
go | vendor/ |
rust | target/ |
After clearing, simply start the bot — dependencies will be reinstalled automatically from your
package.json, requirements.txt, go.mod, or Cargo.toml.curl -X POST https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/deps/reinstall \
-H "Authorization: Bearer sess_..."
{
"success": true,
"data": {
"removed": ["node_modules", ".pkg_sig"]
},
"message": "Dependencies cleared (node_modules, .pkg_sig). Start the bot to reinstall."
}
{
"success": false,
"error": "Bot must be offline before reinstalling dependencies. Stop the bot first."
}

