Google Workspace InsertEvent

Google Workspace InsertEvent

Certified

Create a Google Calendar event

Inserts a new event in the target calendar using a service account. Requires summary, start, and end times; optional location, description, creator, and attendees.

yaml
type: io.kestra.plugin.googleworkspace.calendar.InsertEvent
yaml
id: googleworkspace_calendar_insert_event
namespace: company.team

tasks:
  - id: insert_event
    type: io.kestra.plugin.googleworkspace.calendar.InsertEvent
    serviceAccount: "{{ secret('GCP_SERVICE_ACCOUNT_JSON') }}"
    calendarId: team@company.com
    summary: Sample Event
    description: This is a sample event from Kestra
    location: Thane, Mumbai
    startTime:
      dateTime: "2024-11-28T09:00:00+05:30"
      timeZone: "Asia/Calcutta"
    endTime:
      dateTime: "2024-11-28T10:00:00+05:30"
      timeZone: "Asia/Calcutta"
    creator:
      email: myself@gmail.com
Properties

Calendar ID

Email-style calendar to create the event in; must be shared with the service account

End time

RFC3339 datetime for the end; must be after start

Definitions
dateTimestring

Datetime

RFC3339 timestamp with offset, e.g. 2024-11-28T09: 00: 00-07: 00

timeZonestring

Timezone

IANA timezone, e.g. America/Los_Angeles

Start time

RFC3339 datetime for the start; include offset

Definitions
dateTimestring

Datetime

RFC3339 timestamp with offset, e.g. 2024-11-28T09: 00: 00-07: 00

timeZonestring

Timezone

IANA timezone, e.g. America/Los_Angeles

Event title

Required summary shown in the calendar

Attendees

Replaces the attendee list on creation

Definitions
displayNamestring

Attendee name

Optional display name

emailstring

Attendee email

Email address of the attendee

Creator

Optional explicit creator shown on the event

Definitions
displayNamestring

Attendee name

Optional display name

emailstring

Attendee email

Email address of the attendee

Event description

Optional body text; supports templating

Location

Free-form place text such as city, room, or address

Reference (ref) of the pluginDefaults to apply to this task.

Default120

The read timeout for the request (in seconds)

SubTypestring
Default["https://www.googleapis.com/auth/calendar"]

The GCP scopes to used

The GCP service account key

Inserted event

Event resource containing the new event ID

Definitions
descriptionstring
idstring
locationstring
statusstring
summarystring