---
title: "Suspends all flows in the specified contract"
method: POST
path: "/contracts/{contract_id}/flows/suspend"
tags: ["contracts"]
---

# Suspends all flows in the specified contract

`POST /contracts/{contract_id}/flows/suspend`

Suspends all active and inactive flows (excluding debug and retry flows) in all workspaces of the specified contract.
You need to have the `contracts.contract.suspend_flows` permission to access this resource.
This endpoint is primarily intended for use by the WIPER service account when quota limits are exceeded.

## Path parameters

- `contract_id` string, required

## Query parameters

- `reason` string

## Response `202`

Accepted

- object
  - `suspended` integer, required — Number of flows successfully suspended
  - `errors` object[] — List of errors that occurred during suspension (if any)
    - `flowId` string
    - `error` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2.md) · [All operations](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/elastic-io-rest-api-documentation-v2/revisions/411f9f98c01e/schema)
