If someone is still looking for a solution. Here is an example of how we did this with the npm googleapis module.
This is done during the “insert”, and not during the “patch”. Note that 'conferenceData' is null, and conferenceDataVersion is set to 1.
var event = {
'summary': 'some summary data here',
'location': 'some location',
'description': 'add your description',
'start': {
'dateTime': 'add your start time here',
},
'end': {
'dateTime': 'add your end time here',
},
'attendees': [{
'email': 'attendee1@email.com'
}
],
'reminders': {
'useDefault': true
},
'conferenceData' : null
};
calendar.events.insert({
auth: oauth2Client,
calendarId: 'primary',
conferenceDataVersion: 1,
resource: event,
sendNotifications: false,
email: 'youremail@emailprovider.com'
}, function (err, event) {
if (err) {
console.log(err)
}
console.log(event)
});