const updated = await luma.events.ticketTypes.update("evt-abc123", "tkt-xyz789", {
name: "Early bird",
});
console.log(updated.name);
{
"api_id": "tkt-xyz789",
"name": "Early bird",
"type": "free",
"is_hidden": false
}
Ticket types
Update a ticket type
Update a Luma ticket type with luma.events.ticketTypes.update() to change name, price, capacity, or sale window on an existing tier.
const updated = await luma.events.ticketTypes.update("evt-abc123", "tkt-xyz789", {
name: "Early bird",
});
console.log(updated.name);
{
"api_id": "tkt-xyz789",
"name": "Early bird",
"type": "free",
"is_hidden": false
}
SDK
luma.events.ticketTypes.update(eventId: string, ticketTypeId: string, body: TicketTypeUpdateParams): Promise<TicketType>
Updates an existing ticket type.
const updated = await luma.events.ticketTypes.update("evt-abc123", "tkt-xyz789", {
name: "Early bird",
});
console.log(updated.name);
{
"api_id": "tkt-xyz789",
"name": "Early bird",
"type": "free",
"is_hidden": false
}
Parameters
string
required
Event
api_id from events.list().string
required
Ticket type
api_id from events.ticketTypes.list() or events.ticketTypes.create().TicketTypeUpdateParams
required
Fields to update. See the official Luma API docs for available fields.
Test it
Use an event and ticket type ID from your calendar:const eventId = "evt-abc123";
const ticketTypeId = "tkt-xyz789";
const updated = await luma.events.ticketTypes.update(eventId, ticketTypeId, {
name: "Updated via SDK",
});
console.log(updated.name);