0
votes

I'm using Google Calendar API v3 to create an all-day event with a reminder. The Event resource has a "reminders" property, but you can only specify the number of minutes since the start of the event. It seems, the latest you can set a reminder using the API is midnight the night before the all-day event.

When using the google calendar's web interface you can specify a reminder to happen anytime on the same day as the all-day event. (Enter "0 days" before, and enter any time you want.)

Does anyone know if you can somehow set a reminder to happen on the same day as an all-day event when using the API?

1

1 Answers

0
votes

As far as the documentation shows and as you have also mentioned, the latest supported property available is reminders.overrides[].minutes which can be set to a number of minutes before the start of the event when the reminder should trigger. Valid values are between 0 and 40320 (4 weeks in minutes).

In Overriding default reminders, set reminders.useDefault to false and populate reminders.overrides with the new reminder set.

"reminders": {
  "useDefault": "useDefault",
  # Overrides can be set if and only if useDefault is false.
  "overrides": [
      {
        "method": "reminderMethod",
        "minutes": "reminderMinutes"
      },
      # ...
  ]
}