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/yg2...";
TaskID = "3610";

Result = OPI_Bitrix24.DisapproveTask(URL, TaskID);

URL = "b24-ar17wx.bitrix24.by";
Token = "2f4e4067006e9f06006b12e400000001000...";
TaskID = "3612";

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