Update a person report
curl --request PATCH \
--url https://api.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"details": "<string>",
"reporter_name": "<string>",
"reporter_email": "jsmith@example.com"
}
'import requests
url = "https://api.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}"
payload = {
"details": "<string>",
"reporter_name": "<string>",
"reporter_email": "jsmith@example.com"
}
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({
details: '<string>',
reporter_name: '<string>',
reporter_email: 'jsmith@example.com'
})
};
fetch('https://api.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}', 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.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}",
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([
'details' => '<string>',
'reporter_name' => '<string>',
'reporter_email' => 'jsmith@example.com'
]),
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.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}"
payload := strings.NewReader("{\n \"details\": \"<string>\",\n \"reporter_name\": \"<string>\",\n \"reporter_email\": \"jsmith@example.com\"\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.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"details\": \"<string>\",\n \"reporter_name\": \"<string>\",\n \"reporter_email\": \"jsmith@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}")
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 \"details\": \"<string>\",\n \"reporter_name\": \"<string>\",\n \"reporter_email\": \"jsmith@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"person_id": "<string>",
"reason": "duplicate",
"details": "<string>",
"reporter_name": "<string>",
"reporter_email": "jsmith@example.com",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "pending"
}
}{
"error": "Person not found."
}{
"error": "Person not found."
}{
"error": "Person not found."
}{
"error": "Person not found."
}{
"error": "Person not found."
}{
"errors": {
"first_name": [
"First name is required."
]
}
}{
"error": "Person not found."
}{
"error": "Backend is temporarily unavailable. Try again shortly."
}Reports
Update a person report
Requires reports:write and a public parent belonging to the API key source. Item operations only find active pending reports; after status becomes completed, GET, PATCH and DELETE return 404.
PATCH
/
persons
/
{person_id}
/
reports
/
{report_id}
Update a person report
curl --request PATCH \
--url https://api.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"details": "<string>",
"reporter_name": "<string>",
"reporter_email": "jsmith@example.com"
}
'import requests
url = "https://api.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}"
payload = {
"details": "<string>",
"reporter_name": "<string>",
"reporter_email": "jsmith@example.com"
}
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({
details: '<string>',
reporter_name: '<string>',
reporter_email: 'jsmith@example.com'
})
};
fetch('https://api.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}', 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.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}",
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([
'details' => '<string>',
'reporter_name' => '<string>',
'reporter_email' => 'jsmith@example.com'
]),
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.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}"
payload := strings.NewReader("{\n \"details\": \"<string>\",\n \"reporter_name\": \"<string>\",\n \"reporter_email\": \"jsmith@example.com\"\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.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"details\": \"<string>\",\n \"reporter_name\": \"<string>\",\n \"reporter_email\": \"jsmith@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.venezuelateayuda.com/v1/persons/{person_id}/reports/{report_id}")
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 \"details\": \"<string>\",\n \"reporter_name\": \"<string>\",\n \"reporter_email\": \"jsmith@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"person_id": "<string>",
"reason": "duplicate",
"details": "<string>",
"reporter_name": "<string>",
"reporter_email": "jsmith@example.com",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "pending"
}
}{
"error": "Person not found."
}{
"error": "Person not found."
}{
"error": "Person not found."
}{
"error": "Person not found."
}{
"error": "Person not found."
}{
"errors": {
"first_name": [
"First name is required."
]
}
}{
"error": "Person not found."
}{
"error": "Backend is temporarily unavailable. Try again shortly."
}Authorizations
Send the API key as Authorization: Bearer <api_key>.
Body
application/json
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
Send at least one supported field. Unknown fields are rejected.
Available options:
duplicate, inappropriate, incorrect_info, already_found, other Minimum string length:
1Trimmed and normalized person name.
Minimum string length:
2Available options:
pending, completed Response
Report response.
Show child attributes
Show child attributes

