GET List BotsGET Get BotPOST Create BotDEL Delete BotPOST Start BotPOST Stop BotPOST Restart BotPATCH Update Startup
API Reference
Update Startup
Atualiza o comando de startup (e opcionalmente o entry file) da aplicação.
PATCH
https://astrix.website/api/bot/servers/:id/startupRequest
curl -X PATCH https://astrix.website/api/bot/servers/SERVER_ID/startup \
-H "Authorization: Bearer $BOT_SHARED_SECRET" \
-H "Content-Type: application/json" \
-d '{
"discordUserId": "YOUR_DISCORD_ID",
"startupCommand": "node dist/index.js"
}'Response
{ "ok": true, "startupCommand": "node dist/index.js" }