---
title: "Update comment"
method: PATCH
path: "/social-media/comments/{commentId}"
tags: ["📸 Social Media"]
---

# Update comment

`PATCH /social-media/comments/{commentId}`

The API endpoint allows users to update a comment associated with a post based on the comment ID provided in the path variable.

By accessing this endpoint and specifying the comment ID, users can modify the content or other attributes of the comment associated with the post.

## Request body

- object
  - `content` string

## Response `200`

Delete comment

- object
  - `data` object
    - `deletedComment` object
      - `__v` number
      - `_id` string
      - `author` string
      - `content` string
      - `createdAt` string
      - `postId` string
      - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

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