Read quotas and groups
Read how a test limits and places participants. The response lists each quota and group, the demographics that define it, and how full it is.
Quotas and groups
Section titled “Quotas and groups”A test can use either or both:
- A quota limits how many participants with certain demographics the test admits. A participant counts against every quota they match. Nobody is assigned to a quota.
- A group is a set of participants the test handles together, such as those who receive the same product. A participant can qualify for several groups and is assigned to one.
quota_full means a participant met the criteria and was still not admitted. Any one of these rules causes it:
| Rule | A participant is quota_full when |
|---|---|
| The test’s total | The test has admitted as many participants as it accepts |
| A quota’s maximum | A quota they match has reached max. In a category that allows several options, every option they match must be full. |
| A quota’s minimum | Admitting them would leave too few places to reach the min of quotas they do not match |
| Group capacity | No group they qualified for has room |
The minimum rule applies even when no quota is full. For example, a test accepts 100 participants, and its two quotas for product users have minimums that add up to 100. A participant who uses neither product is quota_full, because admitting them would leave 99 places for 100 required participants.
A participant’s notification reports the result: outcome.status, and for groups, qualified_for and assigned_to. This read describes the quotas and groups themselves.
Read a test’s quotas
Section titled “Read a test’s quotas”GET /api/v1/tests/{test_key}/quotas
Request fields
Section titled “Request fields”| Field | Type | Required | Meaning |
|---|---|---|---|
test_key (path) |
string | Yes | The test’s key |
Request
Section titled “Request”curl --fail-with-body \ 'https://app.redjade.net/api/v1/tests/48213/quotas' \ --header "Authorization: Bearer $REDJADE_TOKEN"Response
Section titled “Response”{ "context": { "test": { "key": "48213", "name": "Chocolate chip cookie home-use test" } }, "quotas": [ { "min": 0, "max": 60, "count": 44, "demographics": [ { "category_key": "7731", "value": [{ "option_key": "30412" }] } ]33 collapsed lines
}, { "min": 10, "max": 20, "count": 12, "demographics": [ { "category_key": "7731", "value": [{ "option_key": "30412" }] }, { "category_key": "7740", "value": [{ "option_key": "30458" }] } ] } ], "groups": [ { "key": "30501", "name": "Soft cookie", "target": 50, "allocated": 31, "completed": 27, "demographics": [ { "category_key": "7770", "value": [{ "option_key": "30601" }] } ] }, { "key": "30502", "name": "Crunchy cookie", "target": 50, "allocated": 44, "completed": 40, "demographics": [ { "category_key": "7770", "value": [{ "option_key": "30602" }] } ] } ]}response├─ context│ └─ test├─ quotas[]│ ├─ min, max, count│ └─ demographics[]│ ├─ category_key│ └─ value[]│ └─ option_key└─ groups[] ├─ key, name, target, allocated, completed └─ demographics[] ├─ category_key └─ value[] └─ option_key| Field | Type | Meaning |
|---|---|---|
context.test |
object | The test’s key and name |
quotas[].min, quotas[].max |
integer | The fewest and most participants the quota accepts |
quotas[].count |
integer | Participants currently counted against the quota |
groups[].key, groups[].name |
string | The group’s identity and label, as used in qualified_for and assigned_to |
groups[].target |
integer | The number of participants the group is meant to hold |
groups[].allocated |
integer | Participants currently assigned to the group, including those who have not finished |
groups[].completed |
integer | Assigned participants who have completed the test |
quotas[].demographics, groups[].demographics |
array | The demographics a participant must have to match |
Read the demographics
Section titled “Read the demographics”Each entry in demographics has the same shape as a participant’s demographic value: a category and a list of options.
A participant matches when, for every entry, they have at least one of the listed options.
To turn the keys into names, join them with participant.demographics.categories in a full document:
Field in a quota or group’s demographics[] |
Matches |
|---|---|
category_key |
participant.demographics.categories[].key |
value[].option_key |
That category’s options[].key |
Use the counts
Section titled “Use the counts”Counts are current when you read them and change as participants are admitted. RedJade decides admission and assignment when a participant is screened. Do not use this read to decide whether a participant will be admitted; use it to display progress or to stop sending people to a full group.