Skip to main content
POST
/
api
/
test-runs
/
{id}
/
re-run
Re-run a test run
curl --request POST \
  --url https://api.empirical.run/api/test-runs/{id}/re-run \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "only_failed": true,
  "send_notifications": true
}
'
{
  "data": {
    "trigger": {
      "success": true
    },
    "test_run": {
      "id": 123,
      "state": "<string>",
      "test_run_branch": "<string>",
      "created_at": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Database ID of the test run.

Required range: x >= 1

Body

application/json
only_failed
boolean

When true, re-run only the failed tests from the source run. The source run must be completed.

send_notifications
boolean

Override whether notifications are sent for the re-run. Defaults to the source run's notification setting.

Response

The re-triggered test run.

data
object
required