Delete comment
Delete task comment by ID
Function DeleteTaskComment(Val URL, Val TaskID, Val CommentID, Val Token = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
TaskID | --task | Number, String | ✔ | Task ID |
CommentID | --comment | Number, String | ✔ | ID of comment to remove |
Token | --token | String | ✖ | Access token, when app auth method used |
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
tip
Method at API documentation: task.commentitem.delete
1C:Enterprise/OneScript code example
URL = "https://b24-ar17wx.bitrix24.by/rest/1/yg2...";
TaskID = "3614";
CommentID = "8646";
Result = OPI_Bitrix24.DeleteTaskComment(URL, TaskID, CommentID);
URL = "b24-ar17wx.bitrix24.by";
Token = "2f4e4067006e9f06006b12e400000001000...";
CommentID = "8648";
Result = OPI_Bitrix24.DeleteTaskComment(URL, TaskID, CommentID, Token);
- Bash
- CMD/Bat
oint bitrix24 DeleteTaskComment \
--url "b24-ar17wx.bitrix24.by" \
--task "3654" \
--comment 8736 \
--token "***"
oint bitrix24 DeleteTaskComment ^
--url "b24-ar17wx.bitrix24.by" ^
--task "3654" ^
--comment 8736 ^
--token "***"
Result
{
"result": true,
"time": {
"start": 1728454796.03849,
"finish": 1728454796.17589,
"duration": 0.137403964996338,
"processing": 0.113073110580444,
"date_start": "2024-10-09T09:19:56+03:00",
"date_finish": "2024-10-09T09:19:56+03:00",
"operating_reset_at": 1728455396,
"operating": 0.113054990768433
}
}