CommentsDelete by post

Delete comments by post

Bulk soft-delete every comment on a single feedback post. Destructive — use with care.

Bulk soft-deletes every active comment on a single feedback post. After this call:

  • Every comment on the post (including replies) has is_active set to false.
  • The post itself is not affected; only its comments.
  • The deletion count is returned so you can verify the operation.

This is a destructive bulk operation. Once executed, individual comments cannot be un-deleted via the API. Use this only when you intentionally want to remove all conversation on a post (e.g. cleaning up a duplicate before merging).

Endpoint

POST https://api.productbridge.io/api/external/v1/comments/delete-by-post

Arguments

body
api_keystring
Required

Your organization's public API key. See Authentication.

body
feedback_post_idstring
Required

UUID of the post whose comments should be deleted. Must belong to your organization.

Returns

{
  "success": true,
  "deleted_count": 7
}

deleted_count is the number of comments that were active immediately before the call. A post with no active comments returns 0.

Example request

curl -X POST https://api.productbridge.io/api/external/v1/comments/delete-by-post \
  -H 'Content-Type: application/json' \
  -d '{
    "api_key": "pb_YOUR_PUBLIC_API_KEY",
    "feedback_post_id": "aa3c3ef8-b8cd-cd15-01ba-postpost0001"
  }'

Example response

{
  "success": true,
  "deleted_count": 7
}

Errors

StatusBodyCause
401{"detail":{"error":"invalid api_key"}}Missing / unknown / inactive api_key.
404{"detail":{"error":"feedback post not found"}}The feedback_post_id doesn't exist or belongs to another organization.
422Validation error envelopeMissing feedback_post_id, or it's not a UUID.

See Errors for the full envelope shape.