Update Calendar

Updates metadata for a calendar

Usage #

// Import the typed helper
import { updateCalendar } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...updateCalendar({
calendar_id: string,
summary: string,
description: string,
// ...
}),
userId: "user_123",
});
// result is typed as UpdateCalendarOutput
const result = await client.execute({
integration: "google_calendar",
tool: "update_calendar",
userId: "user_123",
input: {
calendar_id: string,
summary: string,
description: 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 Calendar tool");

Required Permissions #

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

Input Schema #

calendar_id string required

Calendar identifier

summary string

Title of the calendar

description string

Description of the calendar

location string

Geographic location of the calendar

time_zone string

The time zone of the calendar

This tool calls: #

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