# Update my note comment

`PATCH /api/note-comment/{noteCommentId}`

URL: https://repsona.com/api/patch-note-comment-notecommentid

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `noteCommentId` | path | integer | required | ID of the note comment. |

## Request body

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `doc` | body | object |  | Comment as an editor document (ProseMirror JSON, with a `type: "doc"` root). Send either `doc` or `markdown`; `markdown` wins if both are given. |
| `markdown` | body | string |  | Comment as Markdown (up to 20,000 characters). Send either `doc` or `markdown`. |

## Request

```sh
curl -X PATCH "https://<space>.repsona.com/api/note-comment/{noteCommentId}" \
  -H "Authorization: Bearer $REPSONA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "markdown": "Looks good. Can we also add a rollback step before the launch?"
  }'
```

## Responses

- 200: Updated comment
- 400: Empty body
- 401: Authentication is required
- 404: Comment not found (or not yours)

## Example response

```json
{
  "comment": {
    "id": 36,
    "parentId": null,
    "comment": "Looks good. Can we also add a rollback step before the launch?",
    "createdAt": 1793662619344,
    "updatedAt": 1793662619378,
    "user": {
      "id": 1101,
      "name": "aiko",
      "fullName": "Aiko Tanaka",
      "avatarUrl": null,
      "color": null,
      "state": "active"
    },
    "files": [],
    "deleted": false,
    "reactions": [],
    "children": []
  }
}
```
