---
title: "Batch Operations"
method: POST
path: "/api/v1/tasks/batch-ops"
tags: ["batch-operations"]
---

# Batch Operations

`POST /api/v1/tasks/batch-ops`

Execute a batch operation on multiple tasks.

Supported actions:
- **cancel**: Cancel all specified tasks.
- **retry**: Reset failed tasks back to open.
- **reprioritize**: Update priority on all specified tasks (requires ``priority``).
- **tag**: Add tags to all specified tasks (requires ``tags``).

Returns a result with lists of succeeded and failed task IDs.

## Request body

- BatchRequest — Request body for POST /tasks/batch-ops.
  - `action` 'cancel' | 'retry' | 'reprioritize' | 'tag', required — Supported batch operation types.
  - `ids` string[], required
  - `priority` integer, nullable
  - `tags` string[], nullable

## Response `200`

Successful Response

- BatchResult — Response body for POST /tasks/batch-ops.
  - `succeeded` string[]
  - `failed` object

## Other responses

- `422` — Invalid batch request

---

[API](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/revisions/86f514b4e920/schema)
