Skip to content

POST   /tickets/bulk

Bulk update tickets

Perform bulk operations on multiple tickets at once

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Required Parameters

x-account-id   header string

Account ID for the request

Request Body

{
"ticketIds": [
"string"
],
"action": "string",
"payload": {}
}

Try it out

Loading...

Output:

Responses

Description

Bulk operation completed

{
"success": false,
"totalRequested": 0,
"successCount": 0,
"failureCount": 0,
"results": [
{
"ticketId": "string",
"success": false,
"error": "string"
}
],
"executionTime": 0
}

References

#/components/parameters/xAccountIdHeader

in: header
name: x-account-id
schema:
type: string
description: Account ID for the request
required: true
example: "2311"

#/components/schemas/BulkAssignPayload

type: object
description: Payload for bulk assign action
properties:
assignedTo:
type: string
description: User ID to assign tickets to
assignedTeamId:
type: string
description: Team ID to assign tickets to

#/components/schemas/BulkChangeStatusPayload

type: object
required:
- status
properties:
status:
type: string
enum:
- open
- in_progress
- waiting_customer
- waiting_internal
- resolved
- closed
description: New status for all tickets

#/components/schemas/BulkChangePriorityPayload

type: object
required:
- priority
properties:
priority:
type: string
enum:
- urgent
- high
- medium
- low
description: New priority for all tickets

#/components/schemas/BulkAddTagPayload

type: object
required:
- tag
properties:
tag:
type: string
description: Tag to add to all tickets

#/components/schemas/BulkRemoveTagPayload

type: object
required:
- tag
properties:
tag:
type: string
description: Tag to remove from all tickets

#/components/schemas/BulkOperationResult

type: object
properties:
success:
type: boolean
description: Overall operation success
totalRequested:
type: integer
description: Total number of tickets requested
successCount:
type: integer
description: Number of successfully updated tickets
failureCount:
type: integer
description: Number of failed updates
results:
type: array
items:
type: object
properties:
ticketId:
type: string
success:
type: boolean
error:
type: string
nullable: true
description: Individual results for each ticket
executionTime:
type: number
description: Total execution time in milliseconds

Route Source Code

Check out the source code for this route entrypoint here: /tickets/bulk/route.ts

Or the swagger.yaml spec this documentation was generated from: /tickets/bulk/swagger.yaml