---
title: "Update span comment by id"
method: PATCH
path: "/v1/private/spans/comments/{commentId}"
tags: ["Spans"]
---

# Update span comment by id

`PATCH /v1/private/spans/comments/{commentId}`

Update span comment by id

## Path parameters

- `commentId` string, uuid, required

## Request body

- Comment
  - `id` string, uuid
  - `text` string, required
  - `source_queue_id` string, uuid
  - `created_at` string, date-time
  - `last_updated_at` string, date-time
  - `created_by` string
  - `last_updated_by` string

## Response `204`

No Content

## Other responses

- `404` — Not found

## Changes

- **2026-06-19** `580e3bc69e8a` — 1 info
  - added the new optional request property `source_queue_id`
- **2026-05-04** `d606e84c75e4` — 1 warning
  - removed the request property `source_queue_id`

[Change history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/private/spans/comments/:commentId/patch.md)

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/0739fa5022ca/schema)
