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​
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Comment 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​
| Status | Code | Description |
|---|---|---|
| 401 | unauthorized | Missing or invalid authentication token |
| 404 | not_found | Comment not found |
| 500 | internal_error | Server failed to add reaction |