This is a helper for the SBL API endpoint docs, which can be found here
Endpoints
Stat retrieval
/api/bots/:id
GET Returns information about a single bot whose user ID matches the id
url param\
Response
A JSON structures as:
Error
When there's no bot with the specified ID
Status code: 404 Not Found
Response:
Stat posting
/api/bots/:id
POST Posts stats for the bot whose user ID matches the id
url param\
Headers
Authorization
| The SBL API key of the bot
Body
Should be a JSON structured as:
Response
A JSON structured as:
Error
When there's no bot with the specified ID
Status code: 404 Not Found
Response:
Authorization
header
When there's no Status code: 401 Unauthorized
Response:
Authorization
header doesn't match the bots API key
When the Status code: 403 Forbidden
Response:
guilds
field) in the requests body
When there's no guild count (Status code: 400 Bad Request
Response:
guilds
field) in the requests body is not a number
When the guild count (Status code: 400 Bad Request
Response:
users
field) in the requests body is present and is not a number
When the (optional) user count (Status code: 400 Bad Request
Response: