Skip to main content

Update task time accounting

Update time accounting record data

Function UpdateTaskTimeAccounting(Val URL, Val TaskID, Val RecordID, Val Time, Val Text = "", Val SetupDate = "", Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
TaskID--taskString, NumberTask ID
RecordID--recordString, NumberTime record ID
Time--amountString, NumberTime spent in seconds
Text--textStringComment text
SetupDate--dateStringDate the record was set
Token--tokenStringAccess token, when app auth method used

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


tip

Method at API documentation: task.elapseditem.update


1C:Enterprise/OneScript code example
    URL      = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
TaskID = "7892";
RecordID = "2872";

Text = "The text I forgot last time";
Time = 4800;

Result = OPI_Bitrix24.UpdateTaskTimeAccounting(URL, TaskID, RecordID, Time, Text);

URL = "b24-ar17wx.bitrix24.by";
Token = "75d8c668006e9f06006b12e400000001000...";
RecordID = "2874";

Text = "New time record";
Time = 4800;
SetupDate = AddMonth(OPI_Tools.GetCurrentDate(), -1);

Result = OPI_Bitrix24.UpdateTaskTimeAccounting(URL, TaskID, RecordID, Time, Text, SetupDate, Token);
    oint bitrix24 UpdateTaskTimeAccounting \
--url ""b24-ar17wx.bitrix24.by"" \
--task ""7998"" \
--record "2914" \
--amount "4800" \
--text ""New time record"" \
--date ""2025-08-15T22:51:31.1475964"" \
--token "***"
Result
{
"result": null,
"time": {
"start": 1757976692.85774,
"finish": 1757976692.91008,
"duration": 0.0523331165313721,
"processing": 0.0257930755615234,
"date_start": "2025-09-15T22:51:32+00:00",
"date_finish": "2025-09-15T22:51:32+00:00",
"operating_reset_at": 1757977292,
"operating": 0
}
}