Move Event

Moves an event to another calendar

Usage #

// Import the typed helper
import { moveEvent } from "@hotglue/sdk/google_calendar";
const result = await client.execute({
...moveEvent({
calendar_id: string,
event_id: string,
destination: string,
// ...
}),
userId: "user_123",
});
// result is typed as MoveEventOutput
const result = await client.execute({
integration: "google_calendar",
tool: "move_event",
userId: "user_123",
input: {
calendar_id: string,
event_id: string,
destination: 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 Move Event tool");

Required Permissions #

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

Input Schema #

calendar_id string required

Source calendar identifier

event_id string required

Event identifier

destination string required

Destination calendar identifier

send_updates string

Whether to send notifications

values: all, externalOnly, none

This tool calls: #

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