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.a0AeXRPp7yIYtWir0wC7l09O27fzCyaFxBylix9NPJ_QNA1wB4QVUrG4U7Fr2QSwtfnWG7ZYf6VNrnekZ-jXtryEWp_DVIDnn_y8ABtqeWr...";
Calendar = "96e6863bfd3ed31672dffa73c8c3dceca1da60a058a3d0ecd92969eb6f32cb7c@group.calendar.google.com";
Name = "New name";
Description = "New description";

Result = OPI_GoogleCalendar.EditCalendarMetadata(Token, Calendar, Name, Description);
    oint gcalendar EditCalendarMetadata \
--token "***" \
--calendar "d919fd1a57fdb3da0c0a74402ee4d6b733dea855ad28435cbe5012ebcaffe20a@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"
]
}
}