Skip to main content
PATCH
Update Test Batch

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required
batch_id
string
required

Body

application/json
name
string | null
required

The new name. 1 to 120 characters after leading and trailing whitespace is removed, and a blank name is rejected. null removes the name.

Required string length: 1 - 120

Response

Request fulfilled, document follows

batch_id
string
required
agent_id
string
required
status
enum<string>
required

running until every run has finished.

Available options:
running,
completed
completed
boolean
required
run_count
integer
required

Every run of the batch, one per test and repeat. It is queued + running + passed + failed + errors + cancelled.

queued
integer
required

Runs that have not started.

running
integer
required

Runs in progress.

passed
integer
required
failed
integer
required
errors
integer
required

Runs in status error, which finished without a verdict.

cancelled
integer
required

Runs in status cancelled. They are not counted in errors.

trigger_source
enum<string>
required

Where the batch was started: the console or the API.

Available options:
console,
api
created_at
string<date-time>
required

When the first run was created.

runs
PublicAgentTestRun · object[]
required

The runs of the batch. The list is empty where the runs are left out, with include_runs=false and in the answers to a cancel and to an update.

name
string | null

The name of the batch, null when it has none.

pass_rate
number | null

passed / (passed + failed), null until a run passed or failed. Runs without a verdict (error, cancelled) never judged the agent and are left out.

cancelled_at
string<date-time> | null

When the batch was first cancelled, null if it never was.

finished_at
string<date-time> | null

When the last run finished, null until the batch completed.