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

# Update tickets in bulk



## OpenAPI

````yaml patch /v1/tickets/bulk
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/tickets/bulk:
    patch:
      tags:
        - Tickets
      description: This endpoint is only available for enterprise tier organizations.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTicketsBulkDto'
      responses:
        '200':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateTicketsBulkResponse'
        '401':
          description: User is not authenticated!
        '403':
          description: User does not have access to this resource!
        '404':
          description: Resource not found!
        '429':
          description: Too many requests!
        '500':
          description: Something went wrong!
        '503':
          description: This service/resource is currently unavailable.
components:
  schemas:
    UpdateTicketsBulkDto:
      type: object
      properties:
        statusId:
          type: string
          description: The ID of the status
        typeId:
          type: string
          description: The ID of the type
        priorityId:
          type: string
          description: The ID of the priority
        assignedAgentId:
          type: string
          description: The ID of the assigned agent
        isPrivate:
          type: boolean
          description: Whether the ticket is private
        ticketIds:
          description: The IDs of the tickets to update
          type: array
          items:
            type: string
      required:
        - ticketIds
    UpdateTicketsBulkResponse:
      type: object
      properties:
        status:
          type: boolean
          default: true
          description: The status of the response
        message:
          type: string
          default: Success
          description: The message of the response
        timestamp:
          format: date-time
          type: string
          default: '2024-01-01T00:00:00.000Z'
          description: The timestamp of the response
        data:
          description: The tickets updated
          allOf:
            - $ref: '#/components/schemas/UpdateTicketsBulkResponseDto'
      required:
        - status
        - message
        - timestamp
        - data
    UpdateTicketsBulkResponseDto:
      type: object
      properties:
        updated:
          description: The tickets updated
          type: array
          items:
            $ref: '#/components/schemas/TicketBulkResponseDto'
        skipped:
          description: The tickets skipped
          type: array
          items:
            $ref: '#/components/schemas/SkippedTicketBulkResponseDto'
      required:
        - updated
        - skipped
    TicketBulkResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The ticket id
        title:
          type: string
          description: The ticket title
      required:
        - id
        - title
    SkippedTicketBulkResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The ticket id
        reason:
          type: string
          description: The reason for skipping the ticket
      required:
        - id
        - reason
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````