> ## Documentation Index
> Fetch the complete documentation index at: https://alhwyn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

<Badge color="purple">SDK</Badge> `luma.events.ticketTypes.update(eventId: string, ticketTypeId: string, body: TicketTypeUpdateParams): Promise<TicketType>`

Updates an existing ticket type.

<RequestExample>
  ```typescript Example theme={null}
  const updated = await luma.events.ticketTypes.update("evt-abc123", "tkt-xyz789", {
    name: "Early bird",
  });

  console.log(updated.name);
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "api_id": "tkt-xyz789",
    "name": "Early bird",
    "type": "free",
    "is_hidden": false
  }
  ```
</ResponseExample>

### Parameters

<ParamField path="eventId" type="string" required>
  Event `api_id` from `events.list()`.
</ParamField>

<ParamField path="ticketTypeId" type="string" required>
  Ticket type `api_id` from `events.ticketTypes.list()` or `events.ticketTypes.create()`.
</ParamField>

<ParamField path="body" type="TicketTypeUpdateParams" required>
  Fields to update. See the [official Luma API docs](https://docs.luma.com) for available fields.
</ParamField>

### Test it

Use an event and ticket type ID from your calendar:

```typescript theme={null}
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);
```
