ReviewErrorReport
curl --request POST \
--url https://api.worldmonitor.app/api/news/v1/review-error-report \
--header 'Content-Type: application/json' \
--data '
{
"decision": "example",
"publicNote": "example",
"reportId": "example-id"
}
'import requests
url = "https://api.worldmonitor.app/api/news/v1/review-error-report"
payload = {
"decision": "example",
"publicNote": "example",
"reportId": "example-id"
}
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({decision: 'example', publicNote: 'example', reportId: 'example-id'})
};
fetch('https://api.worldmonitor.app/api/news/v1/review-error-report', 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.worldmonitor.app/api/news/v1/review-error-report",
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([
'decision' => 'example',
'publicNote' => 'example',
'reportId' => 'example-id'
]),
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.worldmonitor.app/api/news/v1/review-error-report"
payload := strings.NewReader("{\n \"decision\": \"example\",\n \"publicNote\": \"example\",\n \"reportId\": \"example-id\"\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.worldmonitor.app/api/news/v1/review-error-report")
.header("Content-Type", "application/json")
.body("{\n \"decision\": \"example\",\n \"publicNote\": \"example\",\n \"reportId\": \"example-id\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.worldmonitor.app/api/news/v1/review-error-report")
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 \"decision\": \"example\",\n \"publicNote\": \"example\",\n \"reportId\": \"example-id\"\n}"
response = http.request(request)
puts response.read_body{
"report": {
"contact": "example",
"createdAt": 1717200000000,
"id": "example-id",
"message": "Example WorldMonitor observation.",
"publicNote": "example"
}
}{
"violations": [
{
"field": "<string>",
"description": "<string>"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}NewsService
ReviewErrorReport
ReviewErrorReport accepts or rejects a report. An accepted report’s public note is added to the label log. Operators only. Requires the X-Trust-Review-Key header (the server’s TRUST_REVIEW_SECRET), not an API key; without it the response is 401.
POST
/
api
/
news
/
v1
/
review-error-report
ReviewErrorReport
curl --request POST \
--url https://api.worldmonitor.app/api/news/v1/review-error-report \
--header 'Content-Type: application/json' \
--data '
{
"decision": "example",
"publicNote": "example",
"reportId": "example-id"
}
'import requests
url = "https://api.worldmonitor.app/api/news/v1/review-error-report"
payload = {
"decision": "example",
"publicNote": "example",
"reportId": "example-id"
}
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({decision: 'example', publicNote: 'example', reportId: 'example-id'})
};
fetch('https://api.worldmonitor.app/api/news/v1/review-error-report', 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.worldmonitor.app/api/news/v1/review-error-report",
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([
'decision' => 'example',
'publicNote' => 'example',
'reportId' => 'example-id'
]),
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.worldmonitor.app/api/news/v1/review-error-report"
payload := strings.NewReader("{\n \"decision\": \"example\",\n \"publicNote\": \"example\",\n \"reportId\": \"example-id\"\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.worldmonitor.app/api/news/v1/review-error-report")
.header("Content-Type", "application/json")
.body("{\n \"decision\": \"example\",\n \"publicNote\": \"example\",\n \"reportId\": \"example-id\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.worldmonitor.app/api/news/v1/review-error-report")
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 \"decision\": \"example\",\n \"publicNote\": \"example\",\n \"reportId\": \"example-id\"\n}"
response = http.request(request)
puts response.read_body{
"report": {
"contact": "example",
"createdAt": 1717200000000,
"id": "example-id",
"message": "Example WorldMonitor observation.",
"publicNote": "example"
}
}{
"violations": [
{
"field": "<string>",
"description": "<string>"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Body
application/json
ReviewErrorReportRequest accepts or rejects one report. Requires the X-Trust-Review-Key header.
Response
Successful response
ReviewErrorReportResponse returns the reviewed report.
ErrorReport is one stored report as an operator sees it.
Show child attributes
Show child attributes
Was this page helpful?
