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

# Update multiple tasks



## OpenAPI

````yaml /api-reference/endpoint/workspaces/openapi.json patch /workspaces/tasks
openapi: 3.0.3
info:
  title: Workspaces Service API
  version: 1.0.0
  description: API for managing workspaces, tasks, and comments
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /workspaces/tasks:
    patch:
      summary: Update multiple tasks
      operationId: updateMultiTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMultiTaskRequest'
      responses:
        '200':
          description: Results indexed by task position in the input array
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    UpdateMultiTaskRequest:
      type: object
      required:
        - tasks
      properties:
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/UpdateTaskRequest'
    UpdateTaskRequest:
      allOf:
        - $ref: '#/components/schemas/CreateTaskRequest'
        - type: object
          required:
            - id
          properties:
            id:
              type: string
            archived:
              type: boolean
            resolve_conflict:
              type: string
              enum:
                - keep_mine
                - take_theirs
              description: >-
                Settles a sync conflict raised by a connected account.
                `no_conflict` (400) if there is none.
            distribution_share:
              type: boolean
              description: >-
                Shares a task that existed before its space was connected, with
                the connected account.
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          description: Stable machine code. Branch on this, not on `error`.
      required:
        - error
    CreateTaskRequest:
      type: object
      required:
        - title
      properties:
        title:
          type: string
        description:
          type: string
          description: Markdown / rich-text content
        assignees:
          type: array
          items:
            type: string
          nullable: true
          description: Assigned user IDs.
        attachments:
          type: array
          items:
            type: string
          nullable: true
        priority:
          type: string
        folder:
          type: string
        reporter:
          type: string
        status:
          type: string
          description: >-
            Initial status id. If omitted and `space_id` is set, the task
            inherits the space's `default_status`.
        space_id:
          type: string
          description: >-
            Parent space id. If omitted, the task lands in the default space.
            The task id is server-generated; any id you send is ignored.
        due_date:
          type: string
          format: date-time
          description: RFC3339 date-time. A date-only value can fail to round-trip.
        scheduled_at:
          type: string
          format: date-time
          description: RFC3339 date-time to schedule the task.
        archived:
          type: boolean
          description: Create the task in an archived state.
        tags:
          type: array
          items:
            type: string
          description: Free-form tag ids.
        parent:
          type: string
          description: >-
            Id of the parent task, when this is a subtask. Setting it needs read
            access to the parent's space.
        source:
          type: string
        source_detail:
          type: string
        value:
          type: number
        currency:
          type: string
        expected_close:
          type: string
        external_id:
          type: string
          maxLength: 256
          description: Your own id for the task, at most 256 bytes of UTF-8.
        metadata:
          type: object
          additionalProperties: true
          description: Arbitrary metadata bag stored on the task.
        time_tracking:
          type: object
          additionalProperties: true
          description: >-
            Set `estimate` only, as `{"estimate": {"time_in_seconds": n}}`.
            Logged time goes through the time-log route.
        order:
          type: number
          description: Sort order of the task within its column/board.
        identity:
          type: object
          additionalProperties:
            type: string
          description: >-
            Keys the Space's base record, for example `{"email":
            "jo@example.com"}`. Request-only. If the contact link cannot be made
            the task is still created and the response carries
            `base_record_skipped`.
        suppress_events:
          type: boolean
          description: >-
            Hides the write from flow task triggers. The changes feed and
            webhooks still see it.
        implementation_date:
          type: string
        assigned_qa:
          type: string
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Authorization header using the Bearer scheme
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.