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

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

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

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