---
title: "Like or unlike comment"
method: POST
path: "/social-media/like/comment/{commentId}"
tags: ["📸 Social Media"]
---

# Like or unlike comment

`POST /social-media/like/comment/{commentId}`

## Request

- Base URL: `https://api.freeapi.app/api/v1`
- URL: `https://api.freeapi.app/api/v1/social-media/like/comment/{commentId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/docs/social-media/like/comment/:commentId/post.ts> (a function with typed inputs; its response is checked against the schema)

The API endpoint enables users to like or unlike a social media comments.

By accessing this endpoint, users can interact with the comment by either liking or unliking it.

## Response `200`

Like or unlike post Copy

- object
  - `data` object
    - `isLiked` boolean
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi.md) - [All operations](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hiteshchoudhary-ssesph/apis/freeapi/revisions/a9f3a290e4dc?raw)
