---
title: "Stop a running V2 experiment."
method: POST
path: "/model-hub/experiments/v2/{experiment_id}/stop/"
tags: ["model-hub"]
---

# Stop a running V2 experiment.

`POST /model-hub/experiments/v2/{experiment_id}/stop/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/experiments/v2/{experiment_id}/stop/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Cancels all Temporal workflows (main + reruns). DB cleanup (marking
RUNNING cells as ERROR, columns/EDTs as FAILED, experiment as CANCELLED)
is handled by each workflow's CancelledError handler via the
stop_experiment_cleanup_activity.

## Request body

- ModelHubEmptyRequest

## Response `200`

OK

- ExperimentStopResponse
  - `status` boolean, required
  - `result` ExperimentStopResult, required
    - `message` string, required
    - `experiment_id` string, uuid, required
    - `workflows_cancelled` ExperimentStopWorkflowsCancelled, required
      - `main` boolean, required
      - `reruns` boolean, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `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)
