Skip to main content
POST
/
v1
/
bot
/
me
/
update
curl -X POST https://portal-api.7331.org/v1/bot/me/update \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-bot-api-key" \
  -d '{
    "name": "Portal Bot v2",
    "group_ids": ["1229891286278865008", "987654321098765432"],
    "users": 5000,
    "latency_ms": 42.5
  }'
{
  "message": "Bot updated successfully",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-15T12:30:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.7331.org/llms.txt

Use this file to discover all available pages before exploring further.

All fields are optional. Info and stats are updated independently based on which fields are provided. Always refreshes last_activity_at. Replaces the old PUT /bot/update-info and PUT /bot/me (stats-only) endpoints.
X-API-Key
string
required
Bot API key.
name
string
Bot display name (2-32 characters).
avatar_url
string
Bot avatar URL.
group_ids
string[]
List of platform group/guild IDs the bot is in. The server derives the group count from this list.
users
integer
Total number of users bot serves.
latency_ms
number
Current bot latency in milliseconds (0-10,000).

Response

message
string
required
Success message.
curl -X POST https://portal-api.7331.org/v1/bot/me/update \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-bot-api-key" \
  -d '{
    "name": "Portal Bot v2",
    "group_ids": ["1229891286278865008", "987654321098765432"],
    "users": 5000,
    "latency_ms": 42.5
  }'
{
  "message": "Bot updated successfully",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-15T12:30:00Z"
}