> ## 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 an event

> Edit a Luma event with luma.events.update(), patching fields like name, start time, location, or visibility on an existing event by ID.

<Badge color="purple">SDK</Badge> `luma.events.update(eventId: string, body: EventUpdateParams): Promise<Event>`

Updates an existing event.

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

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

<ResponseExample>
  ```json Response theme={null}
  {
    "api_id": "evt-abc123",
    "name": "Updated title",
    "start_at": "2026-07-01T18:00:00.000Z",
    "end_at": "2026-07-01T20:00:00.000Z",
    "timezone": "America/Los_Angeles"
  }
  ```
</ResponseExample>

### Parameters

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

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

### Test it

Update a test event title, then call `events.get()` to confirm the change:

```typescript theme={null}
const eventId = "evt-abc123";

const updated = await luma.events.update(eventId, {
  name: "Updated via SDK",
});
console.log(updated.name);
```
