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

# Multi Tasks Actions



## OpenAPI

````yaml PATCH /api/v1/task/workspaces/{workspaceId}/tasks/bulk-update
openapi: 3.1.0
info:
  title: Xenia Team API - Bulk Update Tasks
  version: 1.0.0
  description: >-
    Endpoint to update multiple tasks in bulk, supporting operations like
    changing assignees, priority, status, archiving, and deleting.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/task/workspaces/{workspaceId}/tasks/bulk-update:
    patch:
      summary: Bulk update tasks
      operationId: bulkUpdateTasks
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: UUID of the workspace.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - taskIds
                - operationType
              properties:
                taskIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                  description: Array of task UUIDs to update
                operationType:
                  type: string
                  enum:
                    - assignees
                    - priority
                    - status
                    - archive
                    - delete
                  description: Type of bulk operation to perform
                values:
                  type:
                    - array
                    - 'null'
                  description: Values relevant to the operation
                  items:
                    type: string
            examples:
              Change Assignees:
                summary: Change task assignees
                value:
                  taskIds:
                    - uuid1
                    - uuid2
                  operationType: assignees
                  values:
                    - assignee-uuid1
                    - assignee-uuid2
              Change Priority:
                summary: Change task priority
                value:
                  taskIds:
                    - uuid1
                    - uuid2
                  operationType: priority
                  values:
                    - High
              Change Status:
                summary: Change task status
                value:
                  taskIds:
                    - uuid1
                    - uuid2
                  operationType: status
                  values:
                    - In Progress
              Archive Tasks:
                summary: Archive tasks
                value:
                  taskIds:
                    - uuid1
                    - uuid2
                  operationType: archive
                  values: null
              Delete Tasks:
                summary: Delete tasks
                value:
                  taskIds:
                    - uuid1
                    - uuid2
                  operationType: delete
                  values: null
      responses:
        '200':
          description: Bulk operation successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  updatedTasks:
                    type: array
                    items:
                      type: object
        '400':
          description: Bad Request - Invalid input data.
        '401':
          description: Unauthorized - Missing or invalid authentication.
        '403':
          description: Forbidden - Insufficient permissions to update tasks.
        '404':
          description: Not Found - Workspace or tasks do not exist.
        '500':
          description: Internal Server Error.
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````