Downvote Entity
curl --request PATCH \
--url https://api.replyke.com/api/v6/:projectId/entities/:entityId/downvoteimport requests
url = "https://api.replyke.com/api/v6/:projectId/entities/:entityId/downvote"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.replyke.com/api/v6/:projectId/entities/:entityId/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/entities/:entityId/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/entities/:entityId/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/entities/:entityId/downvote")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/entities/:entityId/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>",
"userId": "<string>",
"title": "<string>",
"upvotes": [
{}
],
"downvotes": [
{}
]
}Entity Endpoints
Downvote Entity
Downvote an entity on behalf of the authenticated user
PATCH
/
:projectId
/
entities
/
:entityId
/
downvote
Downvote Entity
curl --request PATCH \
--url https://api.replyke.com/api/v6/:projectId/entities/:entityId/downvoteimport requests
url = "https://api.replyke.com/api/v6/:projectId/entities/:entityId/downvote"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://api.replyke.com/api/v6/:projectId/entities/:entityId/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/entities/:entityId/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/entities/:entityId/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/entities/:entityId/downvote")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/entities/:entityId/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>",
"userId": "<string>",
"title": "<string>",
"upvotes": [
{}
],
"downvotes": [
{}
]
}Downvotes an entity on behalf of the authenticated user. If the user has previously upvoted the entity, the upvote is removed.
Path Parameters
string
required
The ID of the entity to downvote
Response
Returns the updated entity object with the new downvote.string
Unique entity identifier
string
ID of the entity creator
string
Entity title
array
Array of user IDs who upvoted
array
Array of user IDs who downvoted (includes the current user)
Error Responses
Missing Entity ID - 400 Bad Request
Missing Entity ID - 400 Bad Request
{
"error": "Missing entityId in request.",
"code": "entity/invalid-id"
}
Entity Not Found - 404 Not Found
Entity Not Found - 404 Not Found
{
"error": "Entity not found.",
"code": "entity/not-found"
}
Already Downvoted - 409 Conflict
Already Downvoted - 409 Conflict
{
"error": "User already downvoted entity.",
"code": "entity/already-downvoted"
}
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
{
"error": "Internal server error.",
"code": "entity/server-error",
"details": "<Error message>"
}
Notes
- This action is only available to authenticated users.
- Reputation points are updated for the entity owner.

