curl -X POST https://hapi.7331.org/v1/bot/guilds/987654321098765432 \
-H "Content-Type: application/json" \
-H "X-API-Key: your-bot-api-key" \
-d '{"name": "Updated Server", "member_count": 200}'
{
"discord_id": "987654321098765432",
"name": "Updated Server",
"prefix": "!",
"member_count": 200,
"is_whitelisted": true,
"owner_discord_id": "123456789012345678",
"state": 0,
"id": 42,
"has_bot": true,
"source": "database",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-15T12:30:00Z"
}
Bot-authenticated create/update of a guild’s information.
curl -X POST https://hapi.7331.org/v1/bot/guilds/987654321098765432 \
-H "Content-Type: application/json" \
-H "X-API-Key: your-bot-api-key" \
-d '{"name": "Updated Server", "member_count": 200}'
{
"discord_id": "987654321098765432",
"name": "Updated Server",
"prefix": "!",
"member_count": 200,
"is_whitelisted": true,
"owner_discord_id": "123456789012345678",
"state": 0,
"id": 42,
"has_bot": true,
"source": "database",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-15T12:30:00Z"
}
curl -X POST https://hapi.7331.org/v1/bot/guilds/987654321098765432 \
-H "Content-Type: application/json" \
-H "X-API-Key: your-bot-api-key" \
-d '{"name": "Updated Server", "member_count": 200}'
{
"discord_id": "987654321098765432",
"name": "Updated Server",
"prefix": "!",
"member_count": 200,
"is_whitelisted": true,
"owner_discord_id": "123456789012345678",
"state": 0,
"id": 42,
"has_bot": true,
"source": "database",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-15T12:30:00Z"
}
Was this page helpful?