Search...
bulkUpdateTickets( )
Archives multiple tickets.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function bulkUpdateTickets(eventId: string, options: BulkUpdateTicketsOptions): Promise<BulkUpdateTicketsResponse>
bulkUpdateTickets Parameters
NAME
TYPE
DESCRIPTION
eventId
string
Event ID to which the ticket belongs.
options
Optional
BulkUpdateTicketsOptions
Options for updating the tickets.
Returns
Return Type:
Promise<
BulkUpdateTicketsResponse
>NAME
TYPE
DESCRIPTION
tickets
Array<
TicketingTicket
>Updated tickets.
Was this helpful?
bulkUpdateTickets example
Copy Code
1import { tickets } from 'wix-events.v2';23 async function bulkUpdateTickets(eventId, options) {4 try {5 const result = await tickets.bulkUpdateTickets(eventId, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13