# setyoutubecommentmoderationstatus: Set YouTube Comment Moderation Status

> setyoutubecommentmoderationstatus (Set YouTube Comment Moderation Status) is a 1001fx API function in the group YouTube: POST https://api.1001fx.com/youtube/setyoutubecommentmoderationstatus, 2 credits per call. It works in Make, n8n, scripts and AI agents as a plain HTTP call.

**Deprecated:** this function will be removed in a future release.

Sets the moderation status of one or more comments. The API request must be authorized by the owner of the channel or video associated with the comments.

- This service is provided by an external service provider: YouTube. The data of the call is sent to the provider. [More about service providers](https://1001fx.com/functions#serviceproviders)

- Group: YouTube
- Endpoint: `POST https://api.1001fx.com/youtube/setyoutubecommentmoderationstatus`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 2 credits per call
- Ready-made in: none, use an HTTP request
- Service provider: YouTube
- Docs: https://1001fx.com/functions/setyoutubecommentmoderationstatus

## Parameters

- `credentialKey` (string, required) – 1001fx Credential Key: Your 1001fx credential key. See https://1001fx.com/app/credentials/list
- `ids` (array<string>, required) – Comment IDs: IDs of the comment of which you want to change the moderation status.
- `moderationStatus` (enum, required, one of `published`, `likelySpam`, `heldForReview`) – Moderation Status: Identifies the new moderation status of the specified comments.
- `banAuthor` (boolean, optional) – Ban Author: The banAuthor parameter lets you indicate that you want to automatically reject any additional comments written by the comments author. Note: This parameter is only valid if the moderationStatus parameter is also set to rejected.

## Example: Set YouTube Comment Moderation Status

```bash
curl -X POST 'https://api.1001fx.com/youtube/setyoutubecommentmoderationstatus' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"credentialKey":"yourCredentialKey","id":[],"moderationStatus":"published","banAuthor":false}'
```
