Remove Downvote from Comment
curl --request PATCH \
--url https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvoteimport requests
url = "https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"entityId": "<string>",
"upvotes": [
{}
],
"downvotes": [
{}
],
"content": "<string>"
}Comment Endpoints
Remove Downvote from Comment
Remove a downvote from a comment
PATCH
/
:projectId
/
comments
/
:commentId
/
remove-downvote
Remove Downvote from Comment
curl --request PATCH \
--url https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvoteimport requests
url = "https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/comments/:commentId/remove-downvote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"entityId": "<string>",
"upvotes": [
{}
],
"downvotes": [
{}
],
"content": "<string>"
}Removes a previously added downvote from a comment by the authenticated user. Subtracts the user’s ID from the
downvotes array. Increases the reputation of the comment’s author.
Path Parameters
string
required
The ID of the comment to un-downvote
Response
Returns the updated comment with the downvote removed.string
Unique comment identifier
string
ID of the entity this comment belongs to
array
Array of user IDs who upvoted
array
Updated array of user IDs who downvoted (current user removed)
string
Comment content
Error Responses
Missing Comment ID - 400 Bad Request
Missing Comment ID - 400 Bad Request
{
"error": "Missing required data",
"code": "comment/missing-data"
}
Not Found - 404 Not Found
Not Found - 404 Not Found
{
"error": "Comment not found",
"code": "comment/not-found"
}
Not Downvoted - 409 Conflict
Not Downvoted - 409 Conflict
{
"error": "User hasn't downvoted this comment",
"code": "comment/not-downvoted"
}
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
{
"error": "Internal server error.",
"code": "comment/server-error",
"details": "[error message]"
}
Notes
- The authenticated user must have previously downvoted the comment.
- A successful request removes the user’s ID from
downvotes. - The comment author’s reputation is increased.
- A
409 Conflictis returned if the user hasn’t downvoted the comment.

