Add Comment Reaction
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions \
--header 'Content-Type: application/json' \
--data '
{
"reactionType": "<string>",
"userId": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions"
payload = {
"reactionType": "<string>",
"userId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reactionType: '<string>', userId: '<string>'})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions', 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/api/v7/comments/:commentId/reactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reactionType' => '<string>',
'userId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions"
payload := strings.NewReader("{\n \"reactionType\": \"<string>\",\n \"userId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions")
.header("Content-Type", "application/json")
.body("{\n \"reactionType\": \"<string>\",\n \"userId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"reactionType\": \"<string>\",\n \"userId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyComment Endpoints
Add Comment Reaction
Add or update a reaction on a comment
POST
/
:projectId
/
api
/
v7
/
comments
/
:commentId
/
reactions
Add Comment Reaction
curl --request POST \
--url https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions \
--header 'Content-Type: application/json' \
--data '
{
"reactionType": "<string>",
"userId": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions"
payload = {
"reactionType": "<string>",
"userId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reactionType: '<string>', userId: '<string>'})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions', 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/api/v7/comments/:commentId/reactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reactionType' => '<string>',
'userId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions"
payload := strings.NewReader("{\n \"reactionType\": \"<string>\",\n \"userId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions")
.header("Content-Type", "application/json")
.body("{\n \"reactionType\": \"<string>\",\n \"userId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"reactionType\": \"<string>\",\n \"userId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyAdds a reaction of the specified type to a comment. If the user already has a reaction on this comment, it is replaced with the new type. The comment’s
reactionCounts map is updated accordingly.
Authentication required.
Path Parameters
The UUID of the comment to react to.
Body Parameters
The type of reaction to add. One of:
upvote, downvote, like, love, wow, sad, angry, funny.Override which user the reaction is attributed to. Service or master key only.
Response
Returns the updated Comment object with the newreactionCounts map.
Error Responses
Not Found — 404
Not Found — 404
{ "error": "Comment not found.", "code": "comment/not-found" }
⌘I

