---
title: "Bulk task operations"
method: POST
path: "/cohorts/{cohortId}/tasks/bulk"
tags: ["Tasks"]
---

# Bulk task operations

`POST /cohorts/{cohortId}/tasks/bulk`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/tasks/bulk`
- Auth: HTTP bearer

Perform bulk operations on multiple tasks (update status, assignee, priority, or delete)

## Path parameters

- `cohortId` string, uuid, required

## Request body

- BulkTaskRequest
  - `task_ids` string[], required: Array of task IDs to update
  - `action` 'update_status' | 'update_assignee' | 'update_priority' | 'delete', required: Bulk operation to perform
  - `value` string: New value for the operation (status, assignee_id, or priority)

## Response `200`

Bulk operation completed successfully

- object
  - `success` boolean
  - `data` object
    - `affected_count` integer

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `404`: Cohort not found

---

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