---
title: "Update a comment"
method: PATCH
path: "/api/v1/comments/{id}"
tags: ["Comments"]
---

# Update a comment

`PATCH /api/v1/comments/{id}`

## Request

- Base URL: `https://sprintflint.com`
- URL: `https://sprintflint.com/api/v1/comments/{id}`
- Auth: API key in header `X-API-Token`

Updates an existing comment. Only the comment author can update their own comments.

## Request body

- object
  - `comment` object
    - `body` string: Comment body text

## Response `200`

comment updated

- Comment
  - `id` integer, required
  - `body` string, required
  - `issue_id` integer, required
  - `author_id` integer, required
  - `author_name` string
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `403`: forbidden - not the comment author
- `422`: validation errors

---

[API](https://skmtc.dev/sprintflint/apis/sprintflint-api.md) · [All operations](https://skmtc.dev/sprintflint/apis/sprintflint-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sprintflint/apis/sprintflint-api/revisions/3d4ea91ea0ca?raw)
