# Node-google update calendar event

**URL:** https://discourse.nodered.org/t/node-google-update-calendar-event/4691
**Category:** General
**Created:** [8 November 2018 16:52 UTC](https://discourse.nodered.org/t/node-google-update-calendar-event/4691 "2018-11-08T16:52:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lukasli](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@lukasli](https://discourse.nodered.org/u/lukasli)
#### Post date: [8 November 2018 16:52 UTC](https://discourse.nodered.org/t/node-google-update-calendar-event/4691/1 "2018-11-08T16:52:59Z")

</div>

Hi there,

I was wondering if someone is experienced with updating google calendar events with the node-google? I am able to create events with the following function:

msg.payload = {  
'colorId': 3,  
'summary': 'summary',  
'location': 'location',  
'description': 'description.',  
'start': {  
'dateTime': '2018-11-08T15:00:00',  
'timeZone': 'Europe/Zurich',  
},  
'end': {  
'dateTime': '2018-11-08T19:00:00',  
'timeZone': 'Europe/Zurich',  
},  
'event':{  
'colorId': 'purple',  
'foreground': 'purple',  
},  
};  
return msg;

i was wondering if anyone could help me to explain how to just send an update to change the colorId of the event..

the flow looks like this: inject-\>function-\>google calendar out...

Best Regards...

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [8 November 2018 17:09 UTC](https://discourse.nodered.org/t/node-google-update-calendar-event/4691/2 "2018-11-08T17:09:39Z")

</div>

haven't used it in a while but I think you need to send it as `#RRGGBB`

---

<div class="post-metadata">

### Author: ![lukasli](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@lukasli](https://discourse.nodered.org/u/lukasli)
#### Post date: [9 November 2018 06:59 UTC](https://discourse.nodered.org/t/node-google-update-calendar-event/4691/3 "2018-11-09T06:59:58Z")

</div>

thanks for your reply... I need to clarify my question. Creating an event with the above code and flow works fine. As well as the color of the event. I was wondering if someone has a solution to just update a created event and just change its color...

thanks for any help

---

<div class="post-metadata">

### Author: ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)
#### Post date: [8 July 2019 06:44 UTC](https://discourse.nodered.org/t/node-google-update-calendar-event/4691/4 "2019-07-08T06:44:42Z")

</div>

Hello  
i have read your post, and it seems you got the same problem as me.  
I can create an event in the google agenda, but I absolutely don't know hos to modify, chnage, shift, delete it.  
Did you get an answer? A solution?

---

<div class="post-metadata">

### Author: ![antonio1000homens](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/antonio1000homens/32/13630_2.png) [@antonio1000homens](https://discourse.nodered.org/u/antonio1000homens)
#### Post date: [9 October 2019 11:43 UTC](https://discourse.nodered.org/t/node-google-update-calendar-event/4691/5 "2019-10-09T11:43:21Z")

</div>

Also have the same problem, wondering if we need to use the calendar API until a module is created directly [https://developers.google.com/calendar/quickstart/js](https://developers.google.com/calendar/quickstart/js)
