Project APIExperiments (V2)
Count enrolled units per group
Count the units currently enrolled in each of the experiment's groups, read from ClickHouse, plus their sum as the experiment total. Counts the same rows the members list pages through, so a group's count and the row count behind its group filter agree. Responds 503 when the assignment store cannot be read.
Authorization
personalAccessTokenAuth AuthorizationBearer <token>
Personal access token (prefixed gb_pat_). Acts on behalf of its owner and can never exceed the owner's own permissions. Send it as Authorization: Bearer <token>.
In: header
Path Parameters
applicationId*integer
Range
0 < value <= 9007199254740991experimentId*integer
Range
0 < value <= 9007199254740991Header Parameters
environment_id*number
Gamebeast environment ID
Response Body
application/json
curl -X GET "https://example.com/application/1/v2/experiments/1/assignment-counts" \ -H "environment_id: 0"{ "assignedUnitCount": 0, "groups": [ { "groupId": 1, "assignedUnitCount": 0 } ]}