---
title: "POST /simulate/run-tests/{run_test_id}/rerun-test-executions/"
method: POST
path: "/simulate/run-tests/{run_test_id}/rerun-test-executions/"
tags: ["simulate"]
---

# POST /simulate/run-tests/{run_test_id}/rerun-test-executions/

`POST /simulate/run-tests/{run_test_id}/rerun-test-executions/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/simulate/run-tests/{run_test_id}/rerun-test-executions/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Rerun multiple test executions (either evaluation only or call + evaluation).
All call executions within each test execution are rerun.

## Request body

- TestExecutionRerun
  - `rerun_type` 'eval_only' | 'call_and_eval', required: Type of rerun: evaluation only or call plus evaluation
  - `test_execution_ids` string[]: List of specific test execution IDs to rerun
  - `select_all` boolean: Whether to rerun all test executions in the run test

## Response `200`

OK

- TestExecutionRerunResponse
  - `message` string
  - `run_test_id` string, uuid
  - `rerun_type` string
  - `total_test_executions` integer
  - `results` TestExecutionRerunResult[]
    - `test_execution_id` string, uuid
    - `success_count` integer
    - `failure_count` integer
    - `successful_reruns` string[]
    - `failed_reruns` object[]
    - `dispatch_error` string, nullable
    - `skipped` boolean
    - `reason` string
  - `overall_success_count` integer
  - `overall_failure_count` integer

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
