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.a0AQQ_BDTgQbn9c5rXhPK3FCakms_7oKkdIWE1CCQFnSPftb2RxvloVqnYOcnsAKhXrD0Gq8Tz2Kgn5IBXG5E25uksZfvvTtXob-jFcuj_9LZYs9La4HrcFk766...";
Calendar = "a9168079abee0b7314a77e16ec7ada0ae393cdd389a6f4a8d3f4501aa958f8e9@group.calendar.google.com";
Name = "New name";
Description = "New description";

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