TagMangoTagMango Docs
Community

Delete a comment or reply

DELETE
/api/v1/external/community/channels/{channelId}/posts/{postId}/comments/{commentId}

Delete a comment. Deleting a top-level comment also deletes every reply on it — this cannot be undone.

Authored as the creator by default: actingUserId is required to delete as anyone else — see that field's own description for exactly who is allowed to delete a given comment (the creator, the comment's own author, or a moderator with delete-comment access).

Fails with a 400 if actingUserId is a creator/team-member account, and with a 403 if it resolves to a member without delete access to this comment.

External access policy

An API key and an authorized white-label host are required. Both tier and plan requirements are enforced.

These requirements apply to the white-label creator for backend-to-backend access. TagMango platform access is not supported.

  • Plans: Unrestricted.

  • Tiers: Unrestricted.

AuthorizationBearer <token>

In: header

Path Parameters

channelId*string

Id of the community channel the post belongs to

postId*string

Id of the post the comment belongs to

commentId*string

Id of the comment

Header Parameters

x-whitelabel-host*string

Host name of the dashboard, ex: mydomain.tagmango.com

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://api-prod-new.tagmango.com/api/v1/external/community/channels/61e97c146cf2b4d8c68f3a40/posts/61e97c146cf2b4d8c68f3a4a/comments/61e97c146cf2b4d8c68f3a70" \  -H "x-whitelabel-host: string"
Empty
{
  "code": 400,
  "type": "Bad Request",
  "statusMessage": "BAD_REQUEST",
  "success": false,
  "message": "Invalid request",
  "result": "Invalid request"
}
{
  "code": 401,
  "type": "Unauthorized",
  "statusMessage": "UNAUTHORIZED",
  "message": "Invalid token",
  "result": "Invalid token",
  "success": false
}
{
  "code": 403,
  "type": "Forbidden",
  "statusMessage": "FORBIDDEN",
  "errorCode": "WORKSHOP_MANGO_FORBIDDEN",
  "message": "You can not access this api with a TagMango account, only available for whitelabel hosts",
  "result": "You can not access this api with a TagMango account, only available for whitelabel hosts",
  "success": false
}
{
  "code": 429,
  "type": "Too Many Requests",
  "statusMessage": "TOO_MANY_REQUESTS",
  "message": "Request limit exceeded. try after 10 seconds",
  "result": "Request limit exceeded. try after 10 seconds",
  "success": false
}