Toggle a bot
POST
/api/v1/bots/{bot_id}/toggle
const url = 'https://renotify.app/api/v1/bots/bot_K1QXKE6hZSmt/toggle';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://renotify.app/api/v1/bots/bot_K1QXKE6hZSmt/toggle \ --header 'Authorization: Bearer <token>'Flip the active state for a bot.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”bot_id
required
string
The ID of the bot.
Example
bot_K1QXKE6hZSmt