---
title: "Set comment moderation status"
method: POST
path: "/v1/inbox/comments/{postId}/{commentId}/moderation"
tags: ["Comments"]
---

# Set comment moderation status

`POST /v1/inbox/comments/{postId}/{commentId}/moderation`

Set a comment's moderation status. Supported on YouTube only.

Use this to work a moderation queue: approve a held comment (`published`), reject it
(`rejected`), or send it back for review (`heldForReview`).

The request must be authorized by the owner of the channel or video the comment
belongs to. You cannot moderate comments on videos you do not own.

This is distinct from `POST /v1/inbox/comments/{postId}/{commentId}/hide`, which
covers Facebook, Instagram, Threads, and X/Twitter and does not apply to YouTube.

## Path parameters

- `postId` string, required
- `commentId` string, required

## Request body

- object
  - `accountId` string, required — The social account ID
  - `platform` 'youtube', required — Only YouTube supports comment moderation
  - `moderationStatus` 'published' | 'rejected' | 'heldForReview', required — published approves the comment, rejected removes it, heldForReview returns it to the queue.
  - `banAuthor` boolean — Also ban the comment's author, auto-rejecting their future comments. Only valid when moderationStatus is "rejected"; any other pairing is a 400.

## Response `200`

Moderation status applied

- object
  - `success` boolean

## Other responses

- `400` — Platform does not support comment moderation (code: platform_not_supported), or banAuthor was set without moderationStatus=rejected.
- `401` — Unauthorized
- `403` — Inbox addon required
- `404` — Account not found
- `502` — YouTube rejected the request (e.g. the account does not own the video).

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/versions/f81ca70ea6b9/schema)
