---
title: "Fail Task"
method: POST
path: "/api/v1/cowork/task/{task_id}/fail"
tags: ["cowork"]
---

# Fail Task

`POST /api/v1/cowork/task/{task_id}/fail`

## Request

- Base URL: `https://teraads.co` (the document declares no server; this is the origin it was published from)
- URL: `https://teraads.co/api/v1/cowork/task/{task_id}/fail`
- Auth: none declared

Mark a task as failed. Auto-retries if attempts remain.

## Path parameters

- `task_id` integer, required

## Query parameters

- `brand_id` string, required

## Request body

- FailRequest
  - `error_message` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/teraads/apis/tera-ads-api.md) · [All operations](https://skmtc.dev/teraads/apis/tera-ads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/teraads/apis/tera-ads-api/revisions/fb2526b5cf3c?raw)
