Skip to main content

Edit calendar

Edits properties of an existing calendar

Function EditCalendarMetadata(Val Token, Val Calendar, Val Name = "", Val Description = "") Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Calendar--calendarStringCalendar ID
Name--titleStringNew name
Description--descriptionStringNew calendar description

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token       = "ya29.a0AW4XtxgOTUonqiJAYqYtxcBh8MI1VxhOH0B9hCii3RQaZlp1PVWulwBqV-y7CkKAad7Ofs4NlHXhJ3-Qe1lj4xEd-ubK_QpjEkbdCVoUW...";
Calendar = "55e81a5946198a88ffedb44a63f1500ef90f9463553cb0d15357b3f652c2afb7@group.calendar.google.com";
Name = "New name";
Description = "New description";

Result = OPI_GoogleCalendar.EditCalendarMetadata(Token, Calendar, Name, Description);
    oint gcalendar EditCalendarMetadata \
--token "***" \
--calendar "82e0cd056fc15d8a27748478be1b8ec5bb3881ab44b64534cc0a52ccfbc88b9f@group.calendar.google.com" \
--title "New name" \
--description "New description"
Result
{
"kind": "calendar#calendar",
"etag": "\"TKmlUu-rCWvGCZLbQ4hTqd8_K3U\"",
"id": "48ff105e488eea0a588031479250116f2e769f150c2ca1274b7e79c4b057b46b@group.calendar.google.com",
"summary": "New name",
"description": "New description",
"timeZone": "Europe/Moscow",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}