2025-01-18 20:04:47 +03:00
|
|
|
UserID = 1;
|
|
|
|
|
|
|
|
CalendarsStructure = New Structure;
|
|
|
|
CalendarsStructure.Insert("type" , "user");
|
|
|
|
CalendarsStructure.Insert("ownerId" , UserID);
|
|
|
|
CalendarsStructure.Insert("name" , "New calendar name");
|
|
|
|
CalendarsStructure.Insert("description", "This calendar has been changed");
|
|
|
|
|
|
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
|
2025-02-09 18:15:36 +03:00
|
|
|
CalendarID = "290";
|
2025-01-18 20:04:47 +03:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UpdateCalendar(URL, CalendarID, CalendarsStructure);
|
|
|
|
|
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
2025-02-09 18:15:36 +03:00
|
|
|
Token = "afd0a867006e9f06006b12e400000001000...";
|
|
|
|
CalendarID = "292";
|
2025-01-18 20:04:47 +03:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UpdateCalendar(URL, CalendarID, CalendarsStructure, Token);
|