FortWatchFortWatchDocs
Menu

Edit a comment

PATCHhttps://api.fortwatch.ai/app/issues/{id}/comments/{commentId}
Scope issues:writeOperation ID editIssueComment

Only the comment's author can edit it.

Parameters

NameInTypeDescription
idrequiredpathnumber
commentIdrequiredpathnumber

Request body

JSON, required.

FieldTypeDescription
bodystringRequired. The note.

Example request

curl -X PATCH "https://api.fortwatch.ai/app/issues/42/comments/42" \
  -H "Authorization: Bearer $FORTWATCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "string"
}'

Response 200

The request succeeded.

FieldTypeDescription
idrequirednumber
bodyrequiredstring
authorNamerequiredstring
userIdrequiredobject | null
createdAtrequiredstring (date-time)
editedAtrequiredstring (date-time) | null
json
{
  "id": 42,
  "body": "string",
  "authorName": "string",
  "userId": {},
  "createdAt": "2026-10-16T12:00:00.000Z",
  "editedAt": "2026-10-16T12:00:00.000Z"
}

Errors

400The request is not valid: a field is missing or has the wrong shape (the message names it).
401No valid credentials: the API key or access token is missing, revoked or expired (INVALID_API_KEY, INVALID_TOKEN).
403Not allowed: the key or token lacks this scope (SCOPE_REQUIRED), the route is dashboard-only (SESSION_REQUIRED), or a plan limit applies.
404Not found in your workspace.
429Too many requests (RATE_LIMITED): wait the seconds Retry-After gives.