Skip to main content

updateEvent

client.calendar.updateEvent(id: string, data: UpdateCalendarEventRequest): Promise<CalendarEvent>

Updates a calendar event.

Modifies the properties of an existing calendar event such as its title, time, or configuration.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the event to update
dataUpdateCalendarEventRequestYesThe fields to update on the event

Returns​

Promise<CalendarEvent> — A promise that resolves to the updated CalendarEvent

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.calendar.updateEvent('id', /* UpdateCalendarEventRequest */);
console.log(result);