---
title: "Create comment quality rules"
method: POST
path: "/applications/{client_id}/comment-quality-rules"
---

# Create comment quality rules

`POST /applications/{client_id}/comment-quality-rules`

## Path parameters

- `client_id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `min_char_count` number — Minimum number of non-whitespace characters in a comment for it to be evaluated as a quality comment. Default value is 0 which means this check is ignored.
  - `emoji_ratio_threshold` number, float — Max ratio of emojis to text content in a comment for it to be evaluated as a quality comment. Default value is 0.7 which means at max 70% of the comment can be filled with emojis.
  - `disallowed_chars` string — Characters in a comment that can lead to it being discarded from quality comment evaluation. Example: "F*ck". Default value is ""
  - `min_sentiment_score` number, float — Minimum sentiment score for a comment to be evaluated as a high quality comment. This can range from -1 to 1 with -1 being the most negative and 1 being the most positive. The default value for this is 0.2. Can be set to None to disable this check.
  - `max_toxicity_score` number, float — Maximum toxicity score for a comment to be evaluated as a high quality comment. This can range from 0 to 1 with 0 being the least toxic and 1 being the most toxic. Default value for this is 0.1. Can be set to None to disable this check.
  - `exclude_gif` boolean — If enabled, comments that contain GIF content will be excluded from quality comments evaluation.

## Response `201`

Created

- object
  - `id` string
  - `url` string
  - `client_id` string
  - `min_char_count` integer
  - `disallowed_chars` string
  - `emoji_ratio_threshold` number
  - `min_sentiment_score` number
  - `max_toxicity_score` number
  - `exclude_gif` boolean
  - `updated_at` string
  - `created_at` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/livelike/apis/engagement-suite.md) · [All operations](https://skmtc.net/livelike/apis/engagement-suite/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/livelike/engagement-suite/revisions/f3171d1c30f7/schema)
