Search...
updateTicketDefinition( )
Updates a ticket definition.
Description
See Partial Updates for more information.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function updateTicketDefinition(definitionId: string, eventId: string, options: UpdateTicketDefinitionOptions): Promise<UpdateTicketDefinitionResponse>
updateTicketDefinition Parameters
NAME
TYPE
DESCRIPTION
definitionId
string
Ticket definition ID.
eventId
string
Event ID.
options
Optional
UpdateTicketDefinitionOptions
Ticket definition details to update.
Returns
Return Type:
Promise<
UpdateTicketDefinitionResponse
>NAME
TYPE
DESCRIPTION
definition
TicketDefinition
Updated ticket definition.
Was this helpful?
updateTicketDefinition example
Copy Code
1import { ticketDefinitions } from 'wix-events.v2';23 async function updateTicketDefinition(definitionId, eventId, options) {4 try {5 const result = await ticketDefinitions.updateTicketDefinition(definitionId, eventId, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13