---
title: "Edit a comment"
method: PATCH
path: "/repos/{owner}/{repo}/issues/{index}/comments/{id}"
tags: ["issue"]
deprecated: true
---

# Edit a comment

`PATCH /repos/{owner}/{repo}/issues/{index}/comments/{id}`

> **Deprecated.**

## Path parameters

- `owner` string, required
- `repo` string, required
- `index` integer, required
- `id` integer, required

## Request body

- EditIssueCommentOption — EditIssueCommentOption options for editing a comment
  - `body` string, required — Body is the updated comment text content

## Response `200`

Comment

- Comment — Comment represents a comment on a commit or issue
  - `assets` Attachment[] — Attachments contains files attached to the comment
    - `browser_download_url` string — DownloadURL is the URL to download the attachment
    - `created_at` string, date-time — Created is the time when the attachment was uploaded
    - `download_count` integer — DownloadCount is the number of times the attachment has been downloaded
    - `id` integer — ID is the unique identifier for the attachment
    - `name` string — Name is the filename of the attachment
    - `size` integer — Size is the file size in bytes
    - `uuid` string — UUID is the unique identifier for the attachment file
  - `body` string — Body contains the comment text content
  - `created_at` string, date-time
  - `html_url` string — HTMLURL is the web URL for viewing the comment
  - `id` integer — ID is the unique identifier for the comment
  - `issue_url` string — IssueURL is the API URL for the issue
  - `original_author` string — OriginalAuthor is the original author name (for imported comments)
  - `original_author_id` integer — OriginalAuthorID is the original author ID (for imported comments)
  - `pull_request_url` string — PRURL is the API URL for the pull request (if applicable)
  - `updated_at` string, date-time
  - `user` User — User represents a user
    - `active` boolean — Is user active
    - `avatar_url` string — URL to the user's avatar
    - `created` string, date-time
    - `description` string — the user's description
    - `email` string, email
    - `followers_count` integer — user counts
    - `following_count` integer
    - `full_name` string — the user's full name
    - `html_url` string — URL to the user's gitea page
    - `id` integer — the user's id
    - `is_admin` boolean — Is the user an administrator
    - `language` string — User locale
    - `last_login` string, date-time
    - `location` string — the user's location
    - `login` string — login of the user, same as `username`
    - `login_name` string — identifier of the user, provided by the external authenticator (if configured)
    - `prohibit_login` boolean — Is user login prohibited
    - `restricted` boolean — Is user restricted
    - `source_id` integer — The ID of the user's Authentication Source
    - `starred_repos_count` integer
    - `visibility` 'public' | 'limited' | 'private' — User visibility level option: public, limited, private
    - `website` string — the user's website

## Other responses

- `204` — APIEmpty is an empty response
- `403` — APIForbiddenError is a forbidden error response
- `404` — APINotFound is a not found empty response

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
