---
title: "Reply to, edit, hide, like or delete a comment"
method: POST
path: "/posts/{id}/targets/{targetId}/comments/{commentId}"
tags: ["Targets"]
---

# Reply to, edit, hide, like or delete a comment

`POST /posts/{id}/targets/{targetId}/comments/{commentId}`

## Request

- Base URL: `https://preflight.social/v1`
- URL: `https://preflight.social/v1/posts/{id}/targets/{targetId}/comments/{commentId}`
- Auth: HTTP bearer

As the connected account, in public. Scope posts:publish.

## Request body

- object
  - `action` 'reply' | 'edit' | 'hide' | 'unhide' | 'like' | 'unlike' | 'delete', required
  - `text` string: For reply and edit.

## Response `200`

Done; for a reply, the new comment.

- object

## Other responses

- `400`: The body did not validate (invalid_request; field says which).
- `401`: Missing, expired or unrecognised key.
- `403`: The key lacks the scope for this call.
- `404`: No such post, file or account in this workspace.
- `409`: Not possible in the current state, or the network does not allow it.

---

[API](https://skmtc.dev/preflight/apis/preflight-api.md) · [All operations](https://skmtc.dev/preflight/apis/preflight-api/llms.txt) · [OpenAPI document](https://skmtc.dev/preflight/apis/preflight-api/revisions/45ae7944ce71?raw)
