Search.../

bulkUpdateTickets( )

Developer Preview

Updates the archived state of multiple tickets.

Description

Note: This function is restricted and only runs if you elevate permissions using the wix-auth.elevate() function.

Syntax

function bulkUpdateTickets(eventId: string, options: BulkUpdateTicketsOptions): Promise<BulkUpdateTicketsResponse>

bulkUpdateTickets Parameters

NAME
TYPE
DESCRIPTION
eventId
string

Event ID.

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';
2
3 async function bulkUpdateTickets(eventId, options) {
4 try {
5 const result = await tickets.bulkUpdateTickets(eventId, options);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13