Skip to main content
PUT
/
comment
/
v1
/
{commentId}
Update comment
curl --request PUT \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/comment/v1/{commentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "comment": "This is a comment."
}
'
{
  "data": {
    "id": 1,
    "profileId": 42,
    "comment": "This is a comment.",
    "metadata": {
      "key": "value"
    },
    "commentType": 1,
    "anomalyId": 5,
    "updatedAt": "2025-05-06T12:00:00.000Z",
    "createdAt": "2025-05-01T09:30:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

commentId
integer
required

Unique identifier of the comment.

Example:

1

Body

application/json
comment
string
required

Content of the comment.

Maximum string length: 2000
Example:

"This is a comment."

Response

200 - application/json

The comment has been updated

data
object
required