Skip to main content
POST
Set Spec Task Split

Authorizations

X-API-Key
string
header
required

Organization API key

Path Parameters

spec_id
string
required

Body

application/json
task_ids
string[]
required

IDs of the spec's tasks to move; each must be a task of the spec. List them with listSpecTasks.

Required array length: 1 - 5000 elements
Required string length: 1 - 64
split
enum<string>
required

The split the tasks join: train or test.

Available options:
train,
test

Response

Successful Response

operation_id
string
required

ID to poll with getSpecOperation.

kind
enum<string>
required

update_split makes a new version with tasks moved; public_copy copies a public spec.

Available options:
update_split,
public_copy
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed
spec_id
string | null
required

The spec the operation made, readable with getSpec; null until it succeeds.

error
string | null
required

Why the operation failed; null otherwise.

created_at
string<date-time>
required
completed_at
string<date-time> | null
required