---
title: "Add a comment vote"
method: POST
path: "/comment-votes/{comment}"
tags: ["Comment Votes"]
---

# Add a comment vote

`POST /comment-votes/{comment}`

## Request

- Base URL: `https://api.fanheroapi.com`
- URL: `https://api.fanheroapi.com/comment-votes/{comment}`
- Auth: API key in header `apiKey`

Adds a comment vote.

## Path parameters

- `comment` string, required

## Headers

- `organization` string, required

## Request body

- AddCommentVoteRestInput
  - `direction` 'UPVOTE' | 'NOVOTE' | 'DOWNVOTE', required: Indicates if the vote is up, down, or neutral

## Response `201`

Added a comment vote.

---

[API](https://skmtc.dev/fanhero/apis/headless-cms-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/revisions/fb8d50c05ee6?raw)
