---
title: "[Deprecated] Stop the latest workflow run"
method: PATCH
path: "/workflow/{id}/stop"
deprecated: true
---

# \[Deprecated\] Stop the latest workflow run

`PATCH /workflow/{id}/stop`

> **Deprecated.**

Stops the latest run of the given workflow. The returned `runId` reflects the run at describe-time and may differ from the cancelled run if a new execution started concurrently. Deprecated; use `PATCH /workflow/{id}/runs/{rid}/stop` to pin a specific run. Scheduled for removal after 2026-07-16.

## Path parameters

- `id` string, required

## Response `200`

The workflow run was stopped

- StopWorkflowResponse
  - `workflowId` string
  - `runId` string

## Other responses

- `404` — Workflow execution, workflow type, or catalog not found
- `409` — Workflow run is in a state that conflicts with the requested operation (e.g. operating on an already-terminal run, or resetting to an incomplete step).
- `500` — Internal server error (e.g. Temporal connection failure)

## Changes

- **2026-04-17** `a3368f919949` — 3 info
  - endpoint deprecated
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `409`
- **2026-03-13** `0f0e49049ef1` — 1 breaking, 2 info
  - removed the media type `application/json` for the response with the status `200`
  - endpoint reactivated
  - removed the non-success response with the status `409`

[Change history](https://skmtc.dev/growthxai/apis/output-ai-api/changes/workflow/:id/stop/patch.md)

---

[API](https://skmtc.dev/growthxai/apis/output-ai-api.md) · [All operations](https://skmtc.dev/growthxai/apis/output-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/growthxai/output-ai-api/revisions/09a49e598435/schema)
