Skip to main content
PATCH
/
comments
/
{comment_id}
Update a comment by a user
curl --request PATCH \
  --url https://api.example.com/comments/{comment_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "review_id": "<string>",
  "author_id": 123,
  "content": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Path Parameters

comment_id
string
required

Unique Identifier of a comment

Body

application/json

Updated content of the Comment.

review_id
string
required

Unique Identifier of a review

author_id
integer
required

Unique Identifier of a user

content
string
required

Response

Successful Response