> For the complete documentation index, see [llms.txt](https://docs.server-discord.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.server-discord.com/api/bots.md).

# SDC Bots

## Send bot data

<mark style="color:green;">`POST`</mark> `https://api.server-discord.com/v2/bots/:id/stats`

#### Path Parameters

| Name                                 | Type   | Description |
| ------------------------------------ | ------ | ----------- |
| id<mark style="color:red;">\*</mark> | String | Айди бота   |

#### Headers

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| Authorization<mark style="color:red;">\*</mark> | String | SDC Token   |

#### Request Body

| Name                                      | Type   | Description                     |
| ----------------------------------------- | ------ | ------------------------------- |
| servers<mark style="color:red;">\*</mark> | Number | Количество серверов, не менее 1 |
| shards<mark style="color:red;">\*</mark>  | Number | Количество шардов, не менее 1   |

{% tabs %}
{% tab title="200: OK Данные успешно установлены" %}

```javascript
{
  "status": true
}
```

{% endtab %}

{% tab title="400: Bad Request Формат ошибок" %}

```javascript
{
  "error": {
    "msg": "Page not found",
    "type": "NOT FOUND",
    "code": 404
  }
}
```

{% endtab %}
{% endtabs %}

### Ограничения

{% hint style="danger" %}
Вы не можете делать больше 2 запросов за 1 минуту.
{% endhint %}
