Skip to main content

Disapprove task

Disapprove task by ID

Function DisapproveTask(Val URL, Val TaskID, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
TaskID--taskNumber, StringTask ID
Token--tokenStringAccess token, when app auth method used

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


tip

Method at API documentation: tasks.task.disapprove


1C:Enterprise/OneScript code example
    URL    = "https://b24-ar17wx.bitrix24.by/rest/1/ps5...";
TaskID = "4614";

Result = OPI_Bitrix24.DisapproveTask(URL, TaskID);

URL = "b24-ar17wx.bitrix24.by";
Token = "14bb8267006e9f06006b12e400000001000...";
TaskID = "4616";

Result = OPI_Bitrix24.DisapproveTask(URL, TaskID, Token);
    oint bitrix24 DisapproveTask \
--url "b24-ar17wx.bitrix24.by" \
--task "4526" \
--token "***"
Result
{
"error": 1048582,
"error_description": "Действие над задачей не разрешено"
}