ts.cmt.update

Edit a comment (owner-only).

Edit a comment (owner-only).

Requires authentication

Description

Updates the content or metadata of a comment. Only the comment author can edit their own comments. Editing sets the edited_at timestamp to track that the comment was modified.

Parameters

NameTypeRequiredDefaultDescription
idstringYesComment ID
contentstringNew comment text
metadataobjectNew metadata (replaces existing)

Response

Returns the updated comment.

{
  "content": "Updated review comment with more detail.",
  "edited_at": "2026-02-12T10:15:00Z",
  "id": "cmt_a1b2c3d4e5f6"
}

Errors

CodeDescription
not_authenticatedNo active login for this session
invalid_inputComment ID is required
not_foundComment with this ID does not exist
unauthorizedOnly the comment author can edit

Examples

Edit a comment

Update the content of a comment you authored.

Request:

{
  "content": "Updated review comment with more detail.",
  "id": "cmt_a1b2c3d4e5f6"
}

Response:

{
  "content": "Updated review comment with more detail.",
  "edited_at": "2026-02-12T10:15:00Z",
  "id": "cmt_a1b2c3d4e5f6"
}