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

# POST /simulate/test-executions/{test_execution_id}/cancel/

`POST /simulate/test-executions/{test_execution_id}/cancel/`

## Request

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

Cancel a test execution

## Request body

- EmptyRequest

## Response `200`

OK

- CancelTestExecutionResponse
  - `success` boolean, required
  - `message` string, required
  - `test_execution_id` string, uuid, nullable, required

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `409`: Conflict
- `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)
