{
  "$id": "https://intentschema.org/profiles/com.google.calendar/productivity.calendar.event.update.v1.json",
  "id": "org.intentschema.productivity.calendar.event.update.v1@com.google.calendar.v1",
  "pins": "https://intentschema.org/intents/productivity/calendar/event/update/v1.json",
  "title": "Google Calendar event update profile",
  "description": "Google Calendar profile for event update.",
  "constraints": {
    "properties": {
      "target": {
        "properties": {
          "system": {
            "const": "google_calendar"
          }
        },
        "required": [
          "system"
        ]
      },
      "google_calendar": {
        "type": "object",
        "properties": {
          "sendUpdates": {
            "enum": [
              "all",
              "externalOnly",
              "none"
            ]
          }
        }
      }
    }
  },
  "api": {
    "method": "PATCH",
    "path": "/calendar/v3/calendars/{calendarId}/events/{eventId}",
    "scopes": [
      "https://www.googleapis.com/auth/calendar"
    ],
    "docs": "https://developers.google.com/calendar/api/v3/reference/events/patch",
    "params": {
      "object.summary": "summary",
      "object.description": "description",
      "object.location": "location",
      "object.start": "start.dateTime (RFC 3339)",
      "object.end": "end.dateTime",
      "object.timezone": "start.timeZone / end.timeZone (IANA)",
      "object.all_day": "start.date / end.date (date-only = all-day)",
      "object.attendees": "attendees[].email",
      "object.recurrence": "recurrence[] (RRULE strings)",
      "object.reminders": "reminders.overrides[].method + minutes",
      "google_calendar.conference.create": "conferenceData.createRequest",
      "google_calendar.visibility": "visibility",
      "google_calendar.guests_can_invite_others": "guestsCanInviteOthers",
      "google_calendar.guests_can_see_other_guests": "guestsCanSeeOtherGuests",
      "target.external_id": "calendarId/events/{eventId} path params",
      "google_calendar.sendUpdates": "sendUpdates query param (all|externalOnly|none)"
    },
    "base_url": "https://www.googleapis.com"
  }
}
