---
title: "Update Comment"
method: PUT
path: "/comments/{id}"
tags: ["Comment"]
---

# Update Comment

`PUT /comments/{id}`

Update a specific comment

## Path parameters

- `id` integer, required

## Request body

- HandlerParamsCommentUpdate
  - `content` string, required — The comment content
  - `email` string — The comment email
  - `ip` string — The comment ip
  - `is_collapsed` boolean, required — The comment is_collapsed
  - `is_pending` boolean, required — The comment is_pending
  - `is_pinned` boolean, required — The comment is_pinned
  - `link` string — The comment link
  - `nick` string — The comment nick
  - `page_key` string, required — The comment page_key
  - `rid` integer, required — The comment rid
  - `site_name` string, required — The site name of your content scope
  - `ua` string — The comment ua

## Response `200`

OK

- HandlerResponseCommentUpdate
  - `badge_color` string, required
  - `badge_name` string, required
  - `content` string, required
  - `content_marked` string, required
  - `date` string, required
  - `email_encrypted` string, required
  - `id` integer, required
  - `ip_region` string
  - `is_allow_reply` boolean, required
  - `is_collapsed` boolean, required
  - `is_pending` boolean, required
  - `is_pinned` boolean, required
  - `is_verified` boolean, required
  - `link` string, required
  - `nick` string, required
  - `page_key` string, required
  - `page_url` string, required
  - `rid` integer, required
  - `site_name` string, required
  - `ua` string, required
  - `user_id` integer, required
  - `visible` boolean, required
  - `vote_down` integer, required
  - `vote_up` integer, required

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/artalkjs/apis/artalk-api.md) · [All operations](https://skmtc.net/artalkjs/apis/artalk-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/artalkjs/artalk-api/revisions/2f927b464019/schema)
