---
title: "Mark Unserved"
method: POST
path: "/flywheel/runs/{run_id}/unserved"
---

# Mark Unserved

`POST /flywheel/runs/{run_id}/unserved`

## Request

- Base URL: `https://api-docs.session-exchange.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.session-exchange.com/flywheel/runs/{run_id}/unserved`
- Auth: none declared

Operator: take a served adapter out of service — THE intentional unserve path (fleet-router
#62). Removes the run's router key from the fleet table and marks every run served on it
`unserved`, atomically. Body: {if_version: int (the fleet table version you read — required),
reason?: str}. Idempotent: a run that is not served answers 200 with its state, nothing written.

## Path parameters

- `run_id` string, required

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/session-exchange/apis/a4sx.md) · [All operations](https://skmtc.dev/session-exchange/apis/a4sx/llms.txt) · [OpenAPI document](https://skmtc.dev/session-exchange/apis/a4sx/revisions/abaefc33dfc7?raw)
