POST
gcalendar_events_import.py
from charter.packs import gcalendar
result = await gcalendar.events_import.ainvoke({"calendarId": ..., "event": ...})
Requires
https://www.googleapis.com/auth/calendar.events. Costs 1 against the provider’s own quota.This tool’s JSON schema is 33 KB, because it models the whole resource this endpoint writes.
That is more context than most tasks. Narrow it at the call site
with Those are its heaviest branches by schema size, not a recommendation: which ones you can spare is yours to decide. The tool underneath is unchanged.
See Projections.
Tool.derived:narrowed = gcalendar.events_import.derived(
name="events_import_narrowed",
drop={"event.conference_data", "event.attendees", "event.working_location_properties"},
)
Path parameters
| Field | Type | Description |
|---|---|---|
calendarId * | string | Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the “primary” keyword. |
Query parameters
| Field | Type | Description |
|---|---|---|
conferenceDataVersion | integer | Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event’s body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0. Acceptable values are 0 to 1, inclusive. ≥ 0; ≤ 1 |
eventLabelVersion | integer | Version number of the event label feature supported by the API client. Version 0 assumes no event label support and processes the colorId field for color management. Version 1 enables support for event labels, and processes the eventLabelId in the event’s body. In this case, the colorId field is ignored. The default is 0. Acceptable values are 0 to 1, inclusive. ≥ 0; ≤ 1 |
supportsAttachments | boolean | Whether API client performing operation supports event attachments. Optional. The default is False. |
Body
| Field | Type | Description |
|---|---|---|
event * | Event | The event to import. iCalUID is required in addition to start and end: it is what identifies the same event across calendaring systems, which is the whole point of importing rather than inserting. |