---
title: "Stop an agent prompt revision that is being streamed"
method: POST
path: "/table-enrichments/saved-agents/prompt/edit/{edit_id}/stop/"
tags: ["table-enrichments"]
---

# Stop an agent prompt revision that is being streamed

`POST /table-enrichments/saved-agents/prompt/edit/{edit_id}/stop/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/table-enrichments/saved-agents/prompt/edit/{edit_id}/stop/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Ask the revision streaming under `edit_id` (its first frame) to stop. Cooperative: the revision reads the request once a second while the model writes and again before the prompt is handed back, and ends there, its trail on the last step with `Stopped by you` on the one it interrupted and its stream in an `error` frame with reason `stopped`. A revision that has already landed is unaffected. The turn a stopped revision claimed is given back.

## Path parameters

- `edit_id` string, uuid, required

## Response `202`

Successful Response

- SavedAgentPromptEditStopResponseSchema: A Stop was asked for. Whether it lands is the stream's to say. Cooperative and best effort: the revision reads the flag once a second while the model writes and again before the prompt is handed back, and a revision that has already landed is not affected. The stream reports the outcome as an `error` frame with reason `stopped`.
  - `edit_id` string, uuid, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/dc5ac3c84444?raw)
