Update Event

Updates an event on the specified calendar

Usage #

// Import the typed helper
import { updateEvent } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...updateEvent({
calendar_id: string,
event_id: string,
summary: string,
// ...
}),
userId: "user_123",
});
// result is typed as UpdateEventOutput
const result = await client.execute({
integration: "google_calendar",
tool: "update_event",
userId: "user_123",
input: {
calendar_id: string,
event_id: string,
summary: string,
// ...
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["google_calendar"],
userId: "user_123",
}),
});
await agent.generate("run the Update Event tool");

Required Permissions #

https://www.googleapis.com/auth/calendar.events

Input Schema #

calendar_id string required

Calendar identifier

event_id string required

Event identifier

summary string

Title of the event

description string

Description of the event

location string

Geographic location of the event

start object

Start time of the event

end object

End time of the event

attendees object[]

List of attendees

recurrence string[]

RRULE, EXRULE, RDATE, or EXDATE lines

color_id string

Color ID for the event

visibility string

Visibility of the event

values: default, public, private, confidential
status string

Status of the event

values: confirmed, tentative, cancelled
send_updates string

Whether to send notifications about changes

values: all, externalOnly, none

This tool calls: #

PATCH https://www.googleapis.com/calendar/v3/calendars/{calendar_id}/events/{event_id}