Skip to main content
POST
/
v1
/
admin
/
bots
/
{bot_id}
/
update
curl -X POST https://hapi.7331.org/v1/admin/bots/111222333444555666/update \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"name": "Hansel Bot v2", "rate_limit_per_hour": 2000}'
{
  "message": "Bot 111222333444555666 updated"
}
Requires an active admin session cookie. Hierarchy enforced against both the current and new bot owner.
bot_id
integer
required
Discord snowflake ID of the bot.
name
string
New display name (2-32 characters).
owner_discord_id
integer
New owner Discord ID.
rate_limit_per_hour
integer
New API rate limit per hour (1-100,000).

Response

message
string
required
Action result message.
curl -X POST https://hapi.7331.org/v1/admin/bots/111222333444555666/update \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{"name": "Hansel Bot v2", "rate_limit_per_hour": 2000}'
{
  "message": "Bot 111222333444555666 updated"
}