Skip to main content
PUT
/
reviews
/
{review_id}
/
reactions
Add a reaction of a user to a review
curl --request PUT \
  --url https://api.example.com/reviews/{review_id}/reactions \
  --header 'Content-Type: application/json' \
  --data '
{
  "user": 123,
  "reaction": "like"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Path Parameters

review_id
string
required

Unique Identifier of a review.

Body

application/json

Review reaction

user
integer
required

ID of the user that reacts to the review.

reaction
enum<string>
required

The reaction that is added.

Available options:
like,
dislike

Response

Successful Response