> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk update tasks

> Apply one operation to many tasks at once. Every task must be in the same workspace.



## OpenAPI

````yaml /openapi.json patch /task/bulk
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /task/bulk:
    patch:
      tags:
        - Tasks
      summary: Bulk update tasks
      description: >-
        Apply one operation to many tasks at once. Every task must be in the
        same workspace.
      operationId: bulkUpdateTasks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                taskIds:
                  type: array
                  items:
                    type: string
                  minItems: 1
                operation:
                  type: string
                  enum:
                    - updateStatus
                    - updatePriority
                    - updateAssignee
                    - delete
                    - addLabel
                    - removeLabel
                    - updateDueDate
                value:
                  type:
                    - string
                    - 'null'
                  description: >-
                    The new value for the chosen operation. Unused by `delete`;
                    null clears an assignee or due date.
              required:
                - taskIds
                - operation
      responses:
        '200':
          description: Bulk operation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkTaskResult'
        '400':
          description: Invalid body, or the tasks span more than one workspace
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing the permission the operation needs
          content:
            text/plain:
              schema:
                type: string
        '404':
          description: No tasks found
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    BulkTaskResult:
      type: object
      properties:
        success:
          type: boolean
        updatedCount:
          type: number
      required:
        - success
        - updatedCount
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````