capabilities.work

Moderate a Page Comment

A 4-step recipe with Confluence. We can help you get access.

Recipe · 4 steps

Moderate a Page Comment

Works with AI assistants

Redact or delete a footer comment on a Confluence page.

  1. List the page's footer comments in storage format to establish the moderation context around the flagged comment.
  2. Read the flagged comment to capture its author, resolution status, and the current version number that a redaction must supersede.
  3. Rewrite the comment body in place with the redacted text, incrementing the version so the moderation action is recorded in the comment's history.
  4. Delete the comment outright. This removes the thread entry, so it is only taken when redaction is not sufficient.
What you'll need to have ready
  • pageId: The id of the page carrying the comment under review.
  • commentId: The id of the comment to moderate.
  • action: Either "redact" to rewrite the comment body, or "remove" to delete it.
  • redactedBody: Replacement body in storage format, used on the redact path (e.g. a note that the content was removed by a moderator).
  • newVersionNumber: The version number to write on the redact path, which Confluence requires to be the current version plus one. Arazzo runtime expressions have no arithmetic, so
  • versionMessage: Optional moderation note recorded on the new comment version.
For your developer

Arazzo workflow confluence:moderate-comment, 4 operations: getFooterComments → getCommentById → updateComment → deleteComment. Specs on APIs.io.