Skip to main content
Mutation

connectProviderCalendar

Attaches a discovered calendar from your reusable provider account at user, space or project scope. Requires space ADMIN or project SCHEDULE:EDIT. Sharing never exposes account credentials.

Arguments

  • accountIdID!

    A provider account owned by the session user.

  • calendarIdID!

    An available calendar returned by providerCalendars.

  • colorString!

    Schedule palette key for this calendar.

  • nameString!

    Display name for this calendar.

  • The scope whose calendars to manage.

Returns

ExternalCalendarConnection!

Example

mutation ConnectProviderCalendar($accountId: ID!, $calendarId: ID!, $color: String!, $name: String!, $target: ExternalCalendarTargetInput!) {
  connectProviderCalendar(
    accountId: $accountId
    calendarId: $calendarId
    color: $color
    name: $name
    target: $target
  ) {
    color
    errorCode
    id
    name
    provider
    scope
    syncedAt
  }
}