xHyroM

Eligible

This section of the documentation will cover how to check if a guild is eligible for an experiment.

Accessible on https://dux.xhyrom.dev/v2/eligible

Eligible Object

Represents the eligibility of a guild for an experiment

Eligible Structure:

fieldtypedescription
eligiblebooleanWhether the guild is eligible for the experiment or not
bucket *bucketThe bucket of the guild
filtersarray of filterThe filters that haven’t been checked
is_override_formattedbooleanWhether the guild is in overrides_formatted

* Includes id field - id of the bucket

Checking eligibility

You can check if a guild is eligible for an experiment by sending a POST request to https://dux.xhyrom.dev/v2/eligible

Body:

fieldtypedescription
experiment_idstringThe id of the experiment to check eligibility for
guild *guildThe guild to check eligibility for

* Only id, features and member_count fields are checked and id is required

POST https://dux.xhyrom.dev/v2/eligible

{
  "experiment_id": "2023-03_clyde_ai",
  "guild": {
    "id": "1046534628577640528",
    "features": ["COMMUNITY"],
    "member_count": 100
  }
}

Returns an eligible object