GamebeastDocs
Dashboard
Project APIExperiments (V2)

Retry cohort computation

POST
/application/{applicationId}/v2/experiments/{experimentId}/cohorts/{cohortId}/retry

Ask for an immediate recompute of one cohort the experiment targets. Resumes a cohort whose automatic refreshes were suspended after repeated failures, or cuts a failure backoff short. Rejected with 409 while the cohort is refreshing normally or already computing, and with 429 within five minutes of the last attempt.

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
Range0 < value <= 9007199254740991
experimentId*integer
Range0 < value <= 9007199254740991
cohortId*integer
Range0 < value <= 9007199254740991

Header Parameters

environment_id*number

Gamebeast environment ID

Response Body

application/json

curl -X POST "https://example.com/application/1/v2/experiments/1/cohorts/1/retry" \  -H "environment_id: 0"
{  "cohort": {    "cohortId": 1,    "name": "string",    "status": "pending",    "memberCount": 0,    "computedAt": "2019-08-24T14:15:22Z",    "lastAttemptAt": "2019-08-24T14:15:22Z",    "lastError": "string",    "failureReason": "transient",    "consecutiveFailures": 0,    "nextAttemptAt": "2019-08-24T14:15:22Z",    "membershipExpiresAt": "2019-08-24T14:15:22Z",    "retryAvailableAt": "2019-08-24T14:15:22Z"  }}