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-10-15 09:53:37 +03:00
|
|
|
Token = "ya29.a0AcM612wD1Uh1izWoUeXoBTM33TS6PlaGZFI6xXeGHeWT2_ZZZ0UbpJzbIurRFIjYKBnh4ZJ0HEgC9HNppTpTV6hgI7ZOwZO6J5KZlEbzH...";
|
|
|
|
|
Calendar = "a3d6595737662df84b35deadee083703bcebd61e5abe13974bda474f6d19a7cd@group.calendar.google.com";
|
2024-09-28 16:17:37 +03:00
|
|
|
Name = "New name";
|
|
|
|
|
Description = "New description";
|
|
|
|
|
|
|
|
|
|
Result = OPI_GoogleCalendar.EditCalendarMetadata(Token, Calendar, Name, Description);
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|
2024-10-15 09:53:37 +03: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
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-09-29 21:40:58 +03:00
|
|
|
{
|
|
|
|
|
"kind": "calendar#calendar",
|
2024-10-09 09:42:00 +03:00
|
|
|
"etag": "\"TKmlUu-rCWvGCZLbQ4hTqd8_K3U\"",
|
|
|
|
|
"id": "48ff105e488eea0a588031479250116f2e769f150c2ca1274b7e79c4b057b46b@group.calendar.google.com",
|
2024-09-29 21:40:58 +03:00
|
|
|
"summary": "New name",
|
|
|
|
|
"description": "New description",
|
|
|
|
|
"timeZone": "Europe/Moscow",
|
|
|
|
|
"conferenceProperties": {
|
|
|
|
|
"allowedConferenceSolutionTypes": [
|
|
|
|
|
"hangoutsMeet"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|