---
title: "Pause an in-progress task"
method: POST
path: "/api/tasks/{id}/pause"
tags: ["Tasks"]
---

# Pause an in-progress task

`POST /api/tasks/{id}/pause`

## Path parameters

- `id` string, required

## Response `200`

Task paused

## Other responses

- `400` — Task not in_progress
- `403` — Task belongs to another agent
- `404` — Task not found

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/92a1dcbd2fc7/schema)
