2023-06-03 22:26:28 +02:00
---
title: Eligible
description: How to check if a guild is eligible for an experiment
---
# Eligible
2024-03-07 11:14:17 +01:00
< div style = "background-color: #e8c192 ; border-color: #fc8c03 ; color: #9c611a ; padding-top: 0.7rem; padding-bottom: 0.7rem; padding-left: 0.7rem; padding-right: 0.8rem; border-left-width: 4px" role = "alert" >
< span style = "font-weight: 700;" > Be Warned< / span > < br / >
< span > Unfortunately, this endpoint is not currently available due to capacity issues.< / span >
< / div >
2023-06-03 22:26:28 +02:00
This section of the documentation will cover how to check if a guild is eligible for an experiment.
2023-06-17 20:36:40 +02:00
Accessible on [https://api.distools.xhyrom.dev/v2/eligible ](https://api.distools.xhyrom.dev/v2/eligible )
2023-06-03 22:26:28 +02:00
## Eligible Object
Represents the eligibility of a guild for an experiment
**Eligible Structure:**
| field | type | description |
| --------------------- | --------------------------------------------------------- | ------------------------------------------------------- |
| eligible | boolean | Whether the guild is eligible for the experiment or not |
| bucket * | [bucket ](./experiments#population-bucket-object ) | The bucket of the guild |
| filters | array of [filter ](./experiments#population-filter-object ) | The filters that haven't been checked |
| is_override_formatted | boolean | Whether the guild is in overrides_formatted |
\* Includes `id` field - id of the bucket
## Checking eligibility
2023-06-17 20:36:40 +02:00
You can check if a guild is eligible for an experiment by sending a POST request to [https://api.distools.xhyrom.dev/v2/eligible ](https://api.distools.xhyrom.dev/v2/eligible )
2023-06-03 22:26:28 +02:00
**Body:**
| field | type | description |
| ------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------- |
| experiment_id | string | The id of the experiment to check eligibility for |
| guild * | [guild ](https://discord.com/developers/docs/resources/guild#guild-object-guild-structure ) | The guild to check eligibility for |
\* Only `id` , `features` and `member_count` fields are checked and `id` is required
```
2023-06-17 20:36:40 +02:00
POST https://api.distools.xhyrom.dev/v2/eligible
2023-06-03 22:26:28 +02:00
{
"experiment_id": "2023-03_clyde_ai",
"guild": {
"id": "1046534628577640528",
"features": ["COMMUNITY"],
"member_count": 100
}
}
```
Returns an [eligible object ](#eligible-object )