Skip to main content
POST
Create a set of test situations

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Body

application/json
mode
enum<string>
required

proactive tests whether the worker reaches out unprompted; reactive tests its replies.

Available options:
reactive,
proactive
name
string
required
Required string length: 1 - 200
worker_id
string
required

The worker being evaluated.

cases
CaseInput · object[]

Sent with the set rather than appended after, so a run can never score a half-written set.

Maximum array length: 200
description
string | null
Maximum string length: 2000

Response

201 - application/json

Successful Response

id
string
required
mode
string
required
name
string
required
worker_id
string
required
case_count
integer
default:0
cases
Case · object[]
created_at
string | null

When the situations were written. Read it before trusting an old set's numbers: a run reads each account as it is today, so a set written weeks ago may be scored against a world that has moved.

created_by
string | null
description
string | null