---
title: "Update bot statistics"
method: PATCH
path: "/bots/{id}/stats"
---

# Update bot statistics

`PATCH /bots/{id}/stats`

Update a bot's command count and/or server count.

## Path parameters

- `id` string, required — A valid Discord Snowflake ID (17–20 digit numeric string).

## Request body

- object
  - `command_count` integer — Number of commands the bot has.
  - `server_count` integer — Number of servers the bot is in. Note: If the provided server count is significantly different from the actual server count, it may be rejected.

## Response `200`

Successful operation.

- object
  - `success` boolean, required

## Other responses

- `400` — Bad Request. The request was invalid or cannot be otherwise served.
- `401` — Unauthorized. API key is missing, invalid, or revoked due to spam.
- `404` — Not Found. The specified bot ID does not exist.
- `410` — Gone. The API key has been revoked due to spamming the stats API.
- `429` — Too Many Requests. Attempting to update stats before the 6-hour cooldown.
- `500` — Internal Server Error. An unexpected error occurred on the server.

---

[API](https://skmtc.net/discordplace/apis/discord-place-api-documentation.md) · [All operations](https://skmtc.net/discordplace/apis/discord-place-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/discordplace/discord-place-api-documentation/versions/ddeef0787786/schema)
