Skip to main content

Edit event

Edits an existing event

Function EditEvent(Val Token, Val Calendar, Val EventDescription, Val Event) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Calendar--calendarStringCalendar ID
EventDescription--propsStringNew event description
Event--eventStringEvent ID

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token       = "ya29.a0AcM612wmWdggP-K6tOc3UqW0KxYMjUi60_Uhu-ERltTaavHGbML0nRBXqkuiBcr0GNmR_1gHKowaF1Rd_4Q5Amc9O23DEBZ95sNEGnpR5...";
Calendar = "aed9a7a5ff01b42e80462afcfc08037e289b1a4dfb07820f5d4e2885e8ccd68e@group.calendar.google.com";
Event = "hcqslmklah35bb514mtfaf9p50";
Description = "New event description";

EventDescription = New Map;
EventDescription.Insert("Description", Description);

Result = OPI_GoogleCalendar.EditEvent(Token, Calendar, EventDescription, Event);
    # JSON data can also be passed as a path to a .json file

oint gcalendar EditEvent \
--token "***" \
--calendar "c341836eae1daa0e494bf49a9dce47af064c9e48f14a7c5c173dd73ac911a621@group.calendar.google.com" \
--props "{'Description':'New event description'}" \
--event "h0nu19bo5mhbja637v1v4s39sg"
Result
{
"kind": "calendar#event",
"etag": "\"3456908680754000\"",
"id": "7rfbn0fb8nai4i7v4l435tgl1c",
"status": "confirmed",
"htmlLink": "https://www.google.com/calendar/event?eid=N3JmYm4wZmI4bmFpNGk3djRsNDM1dGdsMWMgNjA2MTNkNTNjNDY3MGFiZGNlZWMzZTc2OTNjYTQ3NWIwZTg4ZGMxNjc4ZGI3MjEwNTIxMzU2YjQ5NDBhNjE0OEBn",
"created": "2024-10-09T06:12:19Z",
"updated": "2024-10-09T06:12:20.377Z",
"summary": "New event",
"description": "New event description",
"location": "InOffice",
"creator": {
"email": "bayselonarrend@gmail.com"
},
"organizer": {
"email": "60613d53c4670abdceec3e7693ca475b0e88dc1678db7210521356b4940a6148@group.calendar.google.com",
"displayName": "TestCalendar",
"self": true
},
"start": {
"dateTime": "2024-10-09T12:12:19+03:00",
"timeZone": "Europe/Moscow"
},
"end": {
"dateTime": "2024-10-09T13:12:19+03:00",
"timeZone": "Europe/Moscow"
},
"iCalUID": "7rfbn0fb8nai4i7v4l435tgl1c@google.com",
"sequence": 0,
"reminders": {
"useDefault": true
},
"attachments": [
{
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg",
"title": "Image1",
"iconLink": ""
},
{
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg",
"title": "Image2",
"iconLink": ""
}
],
"eventType": "default"
}