---
title: "Edit a comment you authored (body and attachments)"
method: PATCH
path: "/comments/{id}"
tags: ["Comments"]
---

# Edit a comment you authored (body and attachments)

`PATCH /comments/{id}`

## Request

- Base URL: `https://api.teamo360.com/api/v1`
- URL: `https://api.teamo360.com/api/v1/comments/{id}`
- Auth: HTTP bearer

Author-scoped: another principal's comment is 404. Send any of `body`, `attachments` (public https URLs to add), `attachment_ids` (from /files/init + /files/commit with type comment_attachment) or `remove_attachment_ids`. The response carries `editedAt` and the current `attachments`.

Requires the `data:write` token scope.

## Path parameters

- `id` string, required

## Request body

- object

## Response `200`

Success

## Other responses

- `400`: Malformed parameters or body
- `401`: Missing, invalid, expired, or legacy token
- `403`: Blocked by role, token scope, module grant, or org policy
- `404`: Entity missing or outside the principal’s access
- `429`: Rate limit exceeded - see Retry-After

---

[API](https://skmtc.dev/teamo360/apis/teamo-public-api.md) · [All operations](https://skmtc.dev/teamo360/apis/teamo-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/teamo360/apis/teamo-public-api/revisions/32528ecbc4f4?raw)
