Project APIExperiments (V2)
List assignments
List divergence-stored assignments for an experiment with cursor pagination. Supports filtering by group, status, and source (automatic vs manual).
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 <= 9007199254740991Query Parameters
groupId?integer
Range
0 < value <= 9007199254740991status?string
Value in
- "active"
- "unenrolled"
source?string
Value in
- "automatic"
- "manual"
cursor?string
Length
1 <= lengthlimit?integer
Range
1 <= value <= 100Default
50Header Parameters
environment_id*number
Gamebeast environment ID
Response Body
application/json
curl -X GET "https://example.com/application/1/v2/experiments/1/assignments" \ -H "environment_id: 0"{ "items": [ { "experimentId": 1, "unitType": "user", "distinctId": "string", "automaticGroupId": 1, "automaticSource": "weightedHash", "automaticAssignedAt": "2019-08-24T14:15:22Z", "overrideGroupId": 1, "overrideSetAt": "2019-08-24T14:15:22Z", "overrideSetBy": "4ade4f38-35c9-4cac-ac9d-5256213fb60b", "overrideReason": "string", "status": "active", "effectiveGroupId": 1, "effectiveSource": "weightedHash", "version": 2, "statusChangedAt": "2019-08-24T14:15:22Z", "statusChangedBy": "d504620c-9af0-4af0-b2c2-f855ca6ca92e", "statusReason": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}