Handle Comment Report
curl --request PATCH \
--url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commentId": "<string>",
"actions": [
"<string>"
],
"summary": "<string>",
"userId": "<string>",
"reason": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId"
payload = {
"commentId": "<string>",
"actions": ["<string>"],
"summary": "<string>",
"userId": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
commentId: '<string>',
actions: ['<string>'],
summary: '<string>',
userId: '<string>',
reason: '<string>'
})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId', 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/spaces/:spaceId/reports/comment/:reportId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'commentId' => '<string>',
'actions' => [
'<string>'
],
'summary' => '<string>',
'userId' => '<string>',
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/spaces/:spaceId/reports/comment/:reportId"
payload := strings.NewReader("{\n \"commentId\": \"<string>\",\n \"actions\": [\n \"<string>\"\n ],\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"commentId\": \"<string>\",\n \"actions\": [\n \"<string>\"\n ],\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"commentId\": \"<string>\",\n \"actions\": [\n \"<string>\"\n ],\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodySpace — Moderation
Handle Comment Report
Resolve a reported comment within a space
Handle Comment Report
curl --request PATCH \
--url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"commentId": "<string>",
"actions": [
"<string>"
],
"summary": "<string>",
"userId": "<string>",
"reason": "<string>"
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId"
payload = {
"commentId": "<string>",
"actions": ["<string>"],
"summary": "<string>",
"userId": "<string>",
"reason": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
commentId: '<string>',
actions: ['<string>'],
summary: '<string>',
userId: '<string>',
reason: '<string>'
})
};
fetch('https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId', 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/spaces/:spaceId/reports/comment/:reportId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'commentId' => '<string>',
'actions' => [
'<string>'
],
'summary' => '<string>',
'userId' => '<string>',
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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/spaces/:spaceId/reports/comment/:reportId"
payload := strings.NewReader("{\n \"commentId\": \"<string>\",\n \"actions\": [\n \"<string>\"\n ],\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"commentId\": \"<string>\",\n \"actions\": [\n \"<string>\"\n ],\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/reports/comment/:reportId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"commentId\": \"<string>\",\n \"actions\": [\n \"<string>\"\n ],\n \"summary\": \"<string>\",\n \"userId\": \"<string>\",\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyResolves a filed report against a comment in a space. Requires the caller to be a moderator or admin of that space.
Also returned when
Path Parameters
string
required
UUID of the space.
string
required
UUID of the comment report to resolve.
Body Parameters
string
required
UUID of the reported comment. Used when performing
remove-comment.string[]
required
One or more actions to take. Must contain at least one value. Available actions:
"remove-comment"— marks the comment as removed via moderation"ban-user"— bans the target user from the space (requiresuserIdandreason)"dismiss"— dismisses the report without action (requiressummary; cannot be combined with other actions)
string
Summary of the action taken. Required when using
dismiss or any non-dismiss action.string
UUID of the user to ban. Required when
ban-user is included in actions.string
Reason for the ban. Required when
ban-user is included in actions.Response
Returns201 Created:
{ "message": "Report handled successfully", "code": "report/handled" }
Error Responses
Report Not Found — 404
Report Not Found — 404
{ "error": "Report not found", "code": "report/not-found" }
Report Not in Space — 404
Report Not in Space — 404
{ "error": "Report does not belong to this space", "code": "report/not-found-in-space" }
Comment Not Found — 404
Comment Not Found — 404
Comment Not in Space — 404
Comment Not in Space — 404
{ "error": "Comment does not belong to this space", "code": "report/comment-not-in-space" }
User Not Found — 404
User Not Found — 404
{ "error": "User not found in this project", "code": "report/user-not-found" }
User Not a Member — 404
User Not a Member — 404
{ "error": "User is not a member of this space", "code": "space/member-not-found" }
Invalid Action Combination — 400
Invalid Action Combination — 400
{ "error": "Cannot combine 'dismiss' with other actions", "code": "report/invalid-actions" }
Missing Required Fields — 400
Missing Required Fields — 400
{ "error": "Summary is required for dismissing a report", "code": "report/missing-fields" }
ban-user is used without userId or reason:{ "error": "userId and reason are required for banning a user", "code": "report/missing-fields" }

