Edit calendar
Edits properties of an existing calendar
- Parameters
- Advanced call ?
Function EditCalendarMetadata(Val Token, Val Calendar, Val Name = "", Val Description = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Calendar | --calendar | String | ✔ | Calendar ID |
| Name | --title | String | ✖ | New name |
| Description | --description | String | ✖ | New calendar description |
Returns
Map Of KeyAndValue - serialized JSON response from Google
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "ya29.a0AT3oNZ89Gfvy6_DUg_tviJJnmBXSmGRrPL6Vym5gPCsPQEa3F606plSWJttyabLz5gHJY63An6XG9wKNlbVK4fkTSF_KNhqT5M6IGUm8THO6IWF0iGzg5z2SO...";
Calendar = "f70efec034ef36b040f12b5d8938e54fc399d73cd37b8e765bdd86ebc4a67e4a@group.calendar.google.com";
Name = "New name";
Description = "New description";
Result = OPI_GoogleCalendar.EditCalendarMetadata(Token, Calendar, Name, Description);
- Bash
- CMD/Bat
oint gcalendar EditCalendarMetadata \
--token "***" \
--calendar "449466f9774ff5eb9b700a3690db50e10f125738ed3862b8aa29ad4f8bb52bfa@group.calendar.google.com" \
--title "New name" \
--description "New description"
oint gcalendar EditCalendarMetadata ^
--token "***" ^
--calendar "449466f9774ff5eb9b700a3690db50e10f125738ed3862b8aa29ad4f8bb52bfa@group.calendar.google.com" ^
--title "New name" ^
--description "New description"
Result
{
"kind": "calendar#calendar",
"etag": "\"F7RewzS8c4CN1ZjxJEpiu8bsMVw\"",
"id": "0efbbb7a8a8bf8f8f0fcf5d979d968532ed27d4c9cb8611b63aeecf450a6e7b3@group.calendar.google.com",
"summary": "New name",
"description": "New description",
"timeZone": "Europe/Moscow",
"dataOwner": "bayselonarrend@gmail.com",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
},
"labelProperties": {
"eventLabels": [
{
"id": "05592985-4783-431d-8297-e72c89a90754",
"backgroundColor": "#7cb342"
},
{
"id": "058ea2c8-5487-43db-99a9-407f5a51d760",
"backgroundColor": "#4285f4"
},
{
"id": "09d16bbd-e1c7-435e-805f-f9474ed08dce",
"backgroundColor": "#ef6c00"
},
{
"id": "11860c4e-7c2e-4137-8fde-52103075324f",
"backgroundColor": "#039be5"
},
{
"id": "18a262b9-c44e-4212-92fb-73cadddb6447",
"backgroundColor": "#7986cb"
},
{
"id": "299a479f-8d9c-4329-afec-53e83c243160",
"backgroundColor": "#33b679"
},
{
"id": "2b7edc04-e478-4229-9481-73e436ce5cfa",
"backgroundColor": "#f09300"
},
{
"id": "3bcf5dc6-3a04-4a29-ab59-ecff92df6248",
"backgroundColor": "#616161"
},
{
"id": "40e5597e-9960-4304-8efa-c50e910709c5",
"backgroundColor": "#8e24aa"
},
{
"id": "459d1aef-4a4a-4dbf-acd9-21408cc92a58",
"backgroundColor": "#ad1457"
},
{
"id": "5a6a2a92-ba2b-4945-8478-294615a42f0a",
"backgroundColor": "#d50000"
},
{
"id": "684eb260-c258-45e4-acfd-f7f629382552",
"backgroundColor": "#e4c441"
},
{
"id": "7787541c-42a2-482e-a9ca-e9276c52cf8d",
"backgroundColor": "#009688"
},
{
"id": "9cfb2d9c-e9ef-453a-a339-36940657b152",
"backgroundColor": "#a79b8e"
},
{
"id": "a08bcb5f-c9c6-4074-9ce3-85a270015bc7",
"backgroundColor": "#e67c73"
},
{
"id": "a63aa1d4-9199-419e-8d29-b4bf11d599fb",
"backgroundColor": "#0b8043"
},
{
"id": "bb2be267-d074-4d14-825f-b77374b17131",
"backgroundColor": "#3f51b5"
},
{
"id": "c830f1af-5566-4097-aad7-2f8b41672351",
"backgroundColor": "#b39ddb"
},
{
"id": "d0505815-e7f7-42ab-9ca9-93bce79c56c1",
"backgroundColor": "#f4511e"
},
{
"id": "d2576127-a7dc-4de2-9518-f69d53067005",
"backgroundColor": "#9e69af"
},
{
"id": "d3870621-004c-4af6-95a6-2d89dea789e2",
"backgroundColor": "#d81b60"
},
{
"id": "db3c41ea-19ee-47f2-a2a8-c13701f9ec16",
"backgroundColor": "#795548"
},
{
"id": "f4c2b839-cebe-4521-afed-aadc422c77fc",
"backgroundColor": "#c0ca33"
},
{
"id": "f8922523-1e15-48e8-8b8a-895c8555ab7d",
"backgroundColor": "#f6bf26"
}
]
}
}