Bots

Enable or disable a bot by body ID

Changed on

Required scope: bot

patch/api/v1/bots/enabled

Request

  • Base URL
    http://localhost:6185
  • URL
    http://localhost:6185/api/v1/bots/enabled
  • Auth
    API key in header X-API-Key

Request body

bot_idstring required
enabledboolean required

Response

Standard AstrBot success response

status'ok' required
messagestring
dataunknown required

Changes