Untuk agen AI: markdown halaman ini — /docs-content-en/feed-comments/delete.md indeks dokumentasi — /llms.txt
Artikel dokumentasi saat ini tersedia dalam bahasa Inggris.
Delete feed comment
Take the ID from data.comments[].id in GET /v1/posts/comments, not commentId. Only comments the user may delete are removed; Bitrix24 checks permissions.
DELETE /v1/feed-comments/88
Bitrix24: log.comment.delete | Scope: log | Auth: X-Api-Key
Deleting a feed entry does not promise deletion of the blog comment or decrementing the post counter. A live probe on an owned post left the counter at 1. To delete the blog comment, use DELETE /v1/posts/:id/comments/:commentId.
Response fields
data.deleted
{
"success": true,
"data": {
"deleted": true
}
}
Examples
curl -X DELETE "https://vibecode.bitrix24.com/v1/feed-comments/88" -H "X-Api-Key: vibe_api_DUMMY_personal"
curl -X DELETE "https://vibecode.bitrix24.com/v1/feed-comments/88" -H "X-Api-Key: vibe_app_DUMMY_oauth" -H "Authorization: Bearer DUMMY_SESSION"
const response = await fetch("https://vibecode.bitrix24.com/v1/feed-comments/88", {
method: "DELETE", headers: { "X-Api-Key": "vibe_api_DUMMY_personal" }
});
const result = await response.json();
const response = await fetch("https://vibecode.bitrix24.com/v1/feed-comments/88", {
method: "DELETE", headers: { "X-Api-Key": "vibe_app_DUMMY_oauth", "Authorization": "Bearer DUMMY_SESSION" }
});
const result = await response.json();
Errors
| HTTP | Code | Meaning |
|---|---|---|
| 400 | INVALID_PARAMS | Invalid input; no Bitrix24 call |
| 401 | TOKEN_MISSING / INVALID_API_KEY | Missing tokens or unusable key |
| 403 | SCOPE_DENIED / BITRIX_ACCESS_DENIED / WRITE_BLOCKED_READONLY_KEY | Missing scope, portal permission refusal, or forbidden write |
| 404 | ENTITY_NOT_FOUND | Entry not found |
| 422 | BITRIX_ERROR | Portal business refusal or unsuccessful operation |
| 429 | BITRIX_RATE_LIMIT | Portal rate limit |
| 502 / 503 | BITRIX_ERROR | Invalid response, unavailable portal or timeout |
400: invalid input.
{"success":false,"error":{"code":"INVALID_PARAMS","message":"Invalid parameter"}}
Which ID to use
| Field | Endpoint |
|---|---|
| id (feed log comment) | DELETE /v1/feed-comments/:id |
| commentId (blog comment) + postId | DELETE /v1/posts/:id/comments/:commentId |