---
title: "Edit your comment"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.gitpando.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Pando API › issues

`PATCH /v1/monorepos/{owner}/{monorepo}/issues/{number}/comments/{id}`

## Authentication

Requires one of the following:

- `credential`, http, header `Authorization`
- `session`, apiKey, in cookie

## Path parameters

- `updateIssueComment.path.owner` (string, required) — The monorepo's owner, a namespace (a person's login or an organization). Matched without case.
  - pattern `^[a-z0-9](?:[a-z0-9]|-(?=[a-z0-9])){0,38}$`
- `updateIssueComment.path.monorepo` (string, required) — The monorepo's name within its owner (or an old name). Matched without case.
  - pattern `^[a-z0-9](?:[a-z0-9._]|-(?!-)){0,38}$`
- `updateIssueComment.path.number` (integer, required)
  - min 1
- `updateIssueComment.path.id` (string, required)

## Request body

_Required._

- `updateIssueComment.body` (string, required)
  - minLength 1; maxLength 65536
- `updateIssueComment.base_version` (integer, optional)

## Example request

```json
{
  "body": "string",
  "base_version": 0
}
```

## Code samples

### cURL

```curl
curl --request PATCH \
  --url https://app.gitpando.com/v1/monorepos/string/string/issues/1/comments/string \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "string",
  "base_version": 0
}
'
```

### TypeScript

```typescript
const url = 'https://app.gitpando.com/v1/monorepos/string/string/issues/1/comments/string';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({body: JSON.stringify('string'), base_version: 0})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.gitpando.com/v1/monorepos/string/string/issues/1/comments/string"

payload = {
    "body": "string",
    "base_version": 0
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The comment now.

#### Example

```json
{
  "id": "string",
  "body": "string",
  "body_version": 0,
  "author": "string",
  "machine": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "reactions": [
    {
      "content": "+1",
      "count": 0,
      "by": [
        "string"
      ]
    }
  ]
}
```

- `updateIssueComment.response.200.id` (string, required)
- `updateIssueComment.response.200.body` (string | null, required) — Null only in a live event, over 16 KB: read it with getIssueComment.
- `updateIssueComment.response.200.body_version` (integer, required)
- `updateIssueComment.response.200.author` (string, required)
- `updateIssueComment.response.200.machine` (string | null, required) — The machine that wrote it.
- `updateIssueComment.response.200.created_at` (string, required)
  - format `date-time`
- `updateIssueComment.response.200.updated_at` (string, required)
  - format `date-time`
- `updateIssueComment.response.200.reactions` (array<object>, required) — Those given at least once, in GitHub's order.
  - `updateIssueComment.response.200.reactions.content` (string, required)
    - one of `"+1"`, `"-1"`, `"laugh"`, `"hooray"`, `"confused"`, `"heart"`, `"rocket"`, `"eyes"`
  - `updateIssueComment.response.200.reactions.count` (integer, required)
  - `updateIssueComment.response.200.reactions.by` (array<string>, required) — Logins

### 403

`forbidden`: someone else's comment.

### 409

`edited`, with `current`, the comment now.


Source: https://docs.gitpando.com/api/issues/updateIssueComment/index.md
