Skip to main content
PATCH
/
repos
/
{owner}
/
{repo}
/
issues
/
{index}
/
comments
/
{id}
Edit a comment
curl --request PATCH \
  --url https://gogs.example.com/api/v1/repos/{owner}/{repo}/issues/{index}/comments/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>"
}
'
{
  "id": 123,
  "html_url": "<string>",
  "user": {
    "id": 123,
    "username": "<string>",
    "login": "<string>",
    "full_name": "<string>",
    "email": "[email protected]",
    "avatar_url": "<string>"
  },
  "body": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

owner
string
required

Repository owner

repo
string
required

Repository name

index
string
required

Issue index

id
string
required

Comment ID

Body

application/json
body
string
required

Response

Success

id
integer
html_url
string
user
object
body
string
created_at
string<date-time>
updated_at
string<date-time>