Skip to main content

Update calendar event

Modifies calendar event data

Function UpdateCalendarEvent(Val URL, Val EventID, Val EventDescription, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
EventID--eventNumberCalednar event ID
EventDescription--fieldsStructure Of KeyAndValueEvent description. See GetCalendarEventsStructure
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: calendar.event.update


1C:Enterprise/OneScript code example
    URL     = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
EventID = "2388";

EventStucture = New Structure;

EventStucture.Insert("ownerId" , 1);
EventStucture.Insert("type" , "user");
EventStucture.Insert("name" , "Modified event");
EventStucture.Insert("description" , "New event description");
EventStucture.Insert("importance" , "low");
EventStucture.Insert("private_event", "Y");

Result = OPI_Bitrix24.UpdateCalendarEvent(URL, EventID, EventStucture);

URL = "b24-ar17wx.bitrix24.by";
Token = "75d8c668006e9f06006b12e400000001000...";
EventID = "2392";
CalendarID = "1324";

Result = OPI_Bitrix24.UpdateCalendarEvent(URL, EventID, EventStucture, Token);
    oint bitrix24 UpdateCalendarEvent \
--url ""b24-ar17wx.bitrix24.by"" \
--event "2472" \
--fields ""/tmp/d0uia3jb.402.json"" \
--token "***"
Result
{
"result": 2472,
"time": {
"start": 1757977141.41628,
"finish": 1757977141.58494,
"duration": 0.168663024902344,
"processing": 0.14338493347168,
"date_start": "2025-09-15T22:59:01+00:00",
"date_finish": "2025-09-15T22:59:01+00:00",
"operating_reset_at": 1757977741,
"operating": 0.14336895942688
}
}