---
title: "Control worker task"
method: POST
path: "/v1/admin/ops/worker-tasks/{task_id}/control"
tags: ["Operations"]
---

# Control worker task

`POST /v1/admin/ops/worker-tasks/{task_id}/control`

## Request

- Base URL: `https://loppee.com`
- URL: `https://loppee.com/v1/admin/ops/worker-tasks/{task_id}/control`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-LOPPEE-API-Key`

Control worker task. The response is scoped and validated by the runtime repository; unknown or unauthorized resources use the canonical error envelope.

## Path parameters

- `task_id` string, required

## Request body

- object
  - `action` string, required
  - `reason` string, required
  - `expected_version` number, required

## Response `200`

Control worker task response

- object: Audited worker task control result.

## Other responses

- `400`: ErrorResponse
- `401`: ErrorResponse
- `403`: ErrorResponse
- `404`: ErrorResponse
- `409`: ErrorResponse
- `413`: ErrorResponse
- `429`: RateLimitError
- `default`: ErrorResponse

---

[API](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents.md) · [All operations](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/loppee/apis/loppee-business-registry-api-for-external-agents/revisions/37285f7cddcd?raw)
