# Edit A Comment

`PATCH /pages/{pageId}/comments/{commentId}`
## Authentication

Use one of the following authentication alternatives:

- **API token** (`bearerToken`) : Send a named API token in the Authorization header. Send it in the `Authorization: Bearer <token>` header.
- **Better Auth browser session** (`browserSession`) : Use the Better Auth session cookie from a signed-in browser session. Send it in the `better-auth.session_token` cookie.
## Token permissions

API tokens must include `pages:comment`.
## Parameters

- `pageId` (path, required): The UUID of the page.
- `commentId` (path, required): The UUID of the comment.
## Request Body

Required.

### `application/json`

```json
{
  "body": "string"
}
```
## Responses

### 200

The requested comment data.


### `application/json`

```json
{
  "thread": {
    "id": "00000000-0000-0000-0000-000000000000",
    "pageId": "00000000-0000-0000-0000-000000000000",
    "anchor": {
      "quote": "string",
      "prefix": "string",
      "suffix": "string"
    },
    "status": "open",
    "createdBy": "00000000-0000-0000-0000-000000000000",
    "createdAt": "string",
    "updatedAt": "string",
    "resolvedBy": "00000000-0000-0000-0000-000000000000",
    "resolvedAt": "string",
    "comments": [
      {
        "id": "00000000-0000-0000-0000-000000000000",
        "threadId": "00000000-0000-0000-0000-000000000000",
        "authorId": "00000000-0000-0000-0000-000000000000",
        "authorName": "string",
        "authorImage": "string",
        "body": "string",
        "createdAt": "string",
        "updatedAt": "string",
        "deletedAt": "string"
      }
    ]
  }
}
```

### 403

The API token is missing a required scope: pages:comment.


### `application/json`

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
