---
search:
  tags:
    - Campaign Plans
    - PATCH
seo:
  description: >-
    Replaces the text of a Comment, and sets editedAt.… Reference for the PATCH
    /context/campaign-plans/{slug}/comments/{comment_id} endpoint in the
    AdCrunch API.
sidebar:
  label: Edit a Comment of a Campaign Plan
  badge: PATCH
title: Edit a Comment of a Campaign Plan
type: openapi-operation
---
Replaces the text of a Comment, and sets `editedAt`. Only the author of the Comment can edit it.

`PATCH /context/campaign-plans/{slug}/comments/{comment_id}`

**Request body** (`application/json`, required)

- `body` (string, required) — The new markdown text, 1 to 10,000 characters.

Request body example:

```json
{
  "body": "Meta carries the reach. TikTok tests the 18–24 audience first."
}
```

**Responses**

- `200` — The Comment with its new text.
- `400` — The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. \`error\` is \`invalid\_request\`, and \`issues\` names each field. Nothing was changed.
- `401` — No API key, or one that does not resolve. See the security scheme. \`error\` is \`unauthorized\`.
- `402` — The organization has no active subscription. An owner subscribes at \`paywallUrl\`. \`error\` is \`organization\_unentitled\`.
- `403` — Another person is the author of the Comment. \`error\` is \`not\_author\`.
- `404` — No live Comment of this Campaign Plan has that id. \`error\` is \`not\_found\`.

Response example, 200:

```json
{
  "body": "Meta carries the reach. TikTok tests the younger audience first.",
  "clientId": null,
  "createdAt": 1789610000000,
  "createdBy": "usr_5d2b71",
  "deleted": false,
  "editedAt": 1789613600000,
  "id": "cmt_8b3f10",
  "parentId": null
}
```
