---
title: "POST /stop-flow"
method: POST
path: "/stop-flow"
---

# POST /stop-flow

`POST /stop-flow`

Deactivates the existing flow. For on-demand flows, this operation returns an <code>unsupportedOperationException</code> error message. For schedule and event-triggered flows, this operation deactivates the flow.

## Request body

- object
  - `flowName` string, required — The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only.

## Response `200`

Success

- StopFlowResponse
  - `flowArn` string — The flow's Amazon Resource Name (ARN).
  - `flowStatus` 'Active' | 'Deprecated' | 'Deleted' | 'Draft' | 'Errored' | 'Suspended' — Indicates the current status of the flow.

## Other responses

- `480` — ConflictException
- `481` — ResourceNotFoundException
- `482` — UnsupportedOperationException
- `483` — InternalServerException

---

[API](https://skmtc.net/aws/apis/appflow.md) · [All operations](https://skmtc.net/aws/apis/appflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/appflow/versions/a56dde8bf1e0/schema)
