cURL
curl --request PATCH \ --url https://api.replyke.com/api/v6/:projectId/entities/:entityId/downvote
{ "id": "<string>", "userId": "<string>", "title": "<string>", "upvotes": [ {} ], "downvotes": [ {} ] }
Downvote an entity on behalf of the authenticated user
Missing Entity ID - 400 Bad Request
{ "error": "Missing entityId in request.", "code": "entity/invalid-id" }
Entity Not Found - 404 Not Found
{ "error": "Entity not found.", "code": "entity/not-found" }
Already Downvoted - 409 Conflict
{ "error": "User already downvoted entity.", "code": "entity/already-downvoted" }
Server Error - 500 Internal Server Error
{ "error": "Internal server error.", "code": "entity/server-error", "details": "<Error message>" }