---
title: "POST /simulate/test-executions/{test_execution_id}/rerun-calls/"
method: POST
path: "/simulate/test-executions/{test_execution_id}/rerun-calls/"
tags: ["simulate"]
---

# POST /simulate/test-executions/{test_execution_id}/rerun-calls/

`POST /simulate/test-executions/{test_execution_id}/rerun-calls/`

## Request

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

Rerun multiple call executions (either evaluation only or call + evaluation)

## Request body

- CallExecutionRerun
  - `rerun_type` 'eval_only' | 'call_and_eval', required: Type of rerun: evaluation only or call plus evaluation
  - `call_execution_ids` string[]: List of specific call execution IDs to rerun
  - `select_all` boolean: Whether to rerun all call executions in the test execution
  - `environment_values` object: Fresh job-scoped environment for a repository-backed harness rerun. Values are forwarded to the sandbox and are not persisted.

## Response `200`

OK

- RerunCallsResponse
  - `message` string, required
  - `test_execution_id` string, uuid, required
  - `rerun_type` string, required
  - `total_processed` integer, required
  - `successful_reruns` string[], required
  - `failed_reruns` FailedRerunItem[], required
    - `call_execution_id` string, uuid, required
    - `error` string, required
  - `success_count` integer, required
  - `failure_count` integer, required
  - `dispatch_error` string, nullable

## Other responses

- `202`: Accepted
- `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)
