Thanks for the update.
When allowGroupEdit is enabled, the resource id field should be in array. We have modified your sample which is working correctly.
let data = [
StartTime: new Date(2018, 5, 5, 10, 0),
EndTime: new Date(2018, 5, 5, 12, 30),
Note: CRUD will not work unless Id field is added to above event.