Перейти к основному содержимому

POST /api/v1/comments/{id}/dislike

Adds a "dislike" reaction to a comment. If the user has already liked the comment, the like is replaced with a dislike.

Authentication

Required. Bearer token in Authorization header.

Request

Path Parameters

ParameterTypeRequiredDescription
idintegerYesComment ID

Example

curl -X POST https://intotes.com/api/v1/comments/1/dislike \
-H "Authorization: Bearer <access_token>"

Response

200 OK

{
"message": "comment disliked successfully"
}

Errors

StatusCodeDescription
401unauthorizedMissing or invalid authentication token
404not_foundComment not found
500internal_errorServer failed to add reaction