Search.../

updateTicket( )

Updates a ticket.

Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Syntax

function updateTicket(identifiers: UpdateTicketIdentifiers, options: UpdateTicketOptions): Promise<UpdateTicketResponse>

updateTicket Parameters

NAME
TYPE
DESCRIPTION
identifiers
UpdateTicketIdentifiers

Details for the ticket to update.

options
Optional
UpdateTicketOptions

Ticket details to update.

Returns

Return Type:

Promise<
UpdateTicketResponse
>
NAME
TYPE
DESCRIPTION
ticket
TicketingTicket

Updated ticket.

Was this helpful?

updateTicket example

Copy Code
1import { tickets } from 'wix-events.v2';
2
3 async function updateTicket(identifiers, options) {
4 try {
5 const result = await tickets.updateTicket(identifiers, options);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13