I would like to set specific colors for events.
I believe I have to use the Calendar API. I cannot figure out how to do this.
The code I am trying is:
In my case I'm not creating, but updating existing calendar events, but I think stood be similar.
event.colorId = filterColorId;
Calendar.Events.patch(event, 'primary', event.id)
The whole solution can be found here http://isbyr.com/colour-code-google-calendar-events-automatically-using-google-apps-script/