2024-06-05 10:19:46 +00:00
|
|
|
---
|
|
|
|
sidebar_position: 3
|
|
|
|
---
|
|
|
|
|
|
|
|
# Edit calendar
|
|
|
|
Edits properties of an existing calendar
|
|
|
|
|
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
`Function EditCalendarMetadata(Val Token, Val Calendar, Val Name = "", Val Description = "") Export`
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
|
|
|
| Calendar | --calendar | String | Calendar ID |
|
|
|
|
| Name | --title | String | New name |
|
|
|
|
| Description | --description | String | New calendar description |
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-07-10 14:05:58 +03:00
|
|
|
<br/>
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
```bsl title="Code example"
|
2024-09-29 00:25:48 +03:00
|
|
|
Token = "ya29.a0AcM612wLdbBK14FR2SE0d3WHabYb8Xtppm0oKCcbVrecgsA-a5DfsgZ29stOw4hu84F_IpHbKTJocsm1WpjLQPBT5MJ6p8D7H1PKa_iT0...";
|
2024-09-28 16:17:37 +03:00
|
|
|
Calendar = "1b68863d126f9c4d9e971c673e25f6601a9622beafbcc10913cd78120c755c6a@group.calendar.google.com";
|
|
|
|
Name = "New name";
|
|
|
|
Description = "New description";
|
|
|
|
|
|
|
|
Result = OPI_GoogleCalendar.EditCalendarMetadata(Token, Calendar, Name, Description);
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
oint gcalendar EditCalendarMetadata --token %token% --calendar %calendar% --title "TestCalendar (change.)" --description "TestDescription"
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-08-14 09:06:31 +03:00
|
|
|
{
|
2024-08-13 15:52:26 +03:00
|
|
|
"conferenceProperties": {
|
|
|
|
"allowedConferenceSolutionTypes": [
|
|
|
|
"hangoutsMeet"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"description": "TestDescription",
|
|
|
|
"summary": "TestCalendar (change.)",
|
|
|
|
"timeZone": "UTC",
|
|
|
|
"id": "75b64bec8700a640b004af3491867ac5e479884794f529699da23e7009f7d691@group.calendar.google.com",
|
|
|
|
"etag": "\"x8eLqpmgoxpEDEXmEbsZxxgmJhc\"",
|
|
|
|
"kind": "calendar#calendar"
|
|
|
|
}
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|