---
title: "Edit comment"
method: PATCH
path: "/v1/inbox/comments/{postId}/{commentId}"
tags: ["Comments"]
---

# Edit comment

`PATCH /v1/inbox/comments/{postId}/{commentId}`

Edit the body of a comment the connected account posted. Supported on Reddit only.

Reddit keeps the same comment id after an edit. Reddit exposes no API to edit a post
title, and a link post has no editable body. To edit a published post's body, use
`POST /v1/posts/{postId}/edit`.

## Path parameters

- `postId` string, required
- `commentId` string, required

## Request body

- object
  - `accountId` string, required — The social account ID
  - `platform` 'reddit', required — Only Reddit supports editing a comment
  - `content` string, required — The new comment body

## Response `200`

Comment edited

- object
  - `status` string
  - `commentId` string
  - `platform` string

## Other responses

- `400` — Platform does not support editing comments (code: platform_not_supported), or content missing.
- `401` — Unauthorized
- `403` — Inbox addon required
- `404` — Account not found
- `502` — Reddit was unreachable or returned an unclassified error. Reddit 4xx statuses are forwarded as-is.

---

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