---
title: "Create Bulk Action"
method: POST
path: "/v2/bulk-actions"
tags: ["bulk-actions"]
---

# Create Bulk Action

`POST /v2/bulk-actions`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/bulk-actions`
- Auth: HTTP bearer

Return an operation ID after DBOS accepts the background task assignment.

## Request body

- BulkActionRequest: The first supported bulk action assigns or unassigns selected tasks.
  - `action_type` 'task_assign', required
  - `task_ids` string[], required
  - `assignee_id` string, nullable, required

## Response `202`

Successful Response

- BulkActionResponse
  - `id` string, typeid, required: TypeID identifier
  - `status` 'pending' | 'running' | 'completed' | 'failed', required
  - `total_count` integer, required
  - `processed_count` integer, required
  - `succeeded_count` integer, required
  - `failed_count` integer, required
  - `errors` BulkActionError[], required
    - `item_id` string, nullable: ID of the item that failed; null for an operation-level failure.
    - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stuut/apis/stuut-api.md) - [All operations](https://skmtc.dev/stuut/apis/stuut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stuut/apis/stuut-api/revisions/ff0ad16a55ff?raw)
