Data Rules
Reject proposed corrections in bulk
Rejects up to 100 proposed corrections in one call with one reason, each as rejecting a single result does. Requires the write:rule token scope and a token associated with a user.
A malformed request or a missing or blank reason (422), or an ID that is unknown or belongs to another project (404), decides nothing. Otherwise each result is decided on its own: one that can’t be rejected is returned in errors with its id, code and message, and the rest still go through, so check errors even on a 200. An already-decided result returns not_pending and is left as it is. A user who isn’t permitted to decide corrections gets a 200 with not_approver in errors, not a 403.
POST
/
projects
/
{project_id}
/
rule_results
/
bulk_reject
Bulk reject correction proposals
curl --request POST \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"result_ids": [
"dpres_aBcD1234eFgH5678",
"dpres_xYzW7890aBcD1234"
],
"reason": "Meter was offline; the zeros are real"
}
'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject"
payload = {
"result_ids": ["dpres_aBcD1234eFgH5678", "dpres_xYzW7890aBcD1234"],
"reason": "Meter was offline; the zeros are real"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
result_ids: ['dpres_aBcD1234eFgH5678', 'dpres_xYzW7890aBcD1234'],
reason: 'Meter was offline; the zeros are real'
})
};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject', 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://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject",
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([
'result_ids' => [
'dpres_aBcD1234eFgH5678',
'dpres_xYzW7890aBcD1234'
],
'reason' => 'Meter was offline; the zeros are real'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject"
payload := strings.NewReader("{\n \"result_ids\": [\n \"dpres_aBcD1234eFgH5678\",\n \"dpres_xYzW7890aBcD1234\"\n ],\n \"reason\": \"Meter was offline; the zeros are real\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"result_ids\": [\n \"dpres_aBcD1234eFgH5678\",\n \"dpres_xYzW7890aBcD1234\"\n ],\n \"reason\": \"Meter was offline; the zeros are real\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"result_ids\": [\n \"dpres_aBcD1234eFgH5678\",\n \"dpres_xYzW7890aBcD1234\"\n ],\n \"reason\": \"Meter was offline; the zeros are real\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "dpres_aBcD1234eFgH5678",
"status": "pass",
"entered_value": "0.0",
"corrected": null,
"rule_id": "rule_xYzW7890aBcD1234",
"rule_version": 1,
"rule_name": "Fill ambient temperature dropouts",
"data_point_id": "in_aBcD1234eFgH5678",
"data_point_slug": "ambient-temperature-c",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null,
"rejected_at": "2026-09-03T08:20:00.000Z",
"rejected_by": "Example User",
"rejection_reason": "Meter was offline; the zeros are real",
"approval_state": "rejected",
"proposed_correction": null,
"evaluated_at": "2026-09-03T08:20:00.000Z"
}
],
"errors": [
{
"id": "dpres_xYzW7890aBcD1234",
"code": "not_pending",
"message": "This correction is no longer waiting on approval."
}
]
}Authorizations
Path Parameters
The project's friendly ID (e.g. prj_aBcD1234eFgH5678).
Body
application/json
⌘I
Bulk reject correction proposals
curl --request POST \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"result_ids": [
"dpres_aBcD1234eFgH5678",
"dpres_xYzW7890aBcD1234"
],
"reason": "Meter was offline; the zeros are real"
}
'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject"
payload = {
"result_ids": ["dpres_aBcD1234eFgH5678", "dpres_xYzW7890aBcD1234"],
"reason": "Meter was offline; the zeros are real"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
result_ids: ['dpres_aBcD1234eFgH5678', 'dpres_xYzW7890aBcD1234'],
reason: 'Meter was offline; the zeros are real'
})
};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject', 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://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject",
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([
'result_ids' => [
'dpres_aBcD1234eFgH5678',
'dpres_xYzW7890aBcD1234'
],
'reason' => 'Meter was offline; the zeros are real'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject"
payload := strings.NewReader("{\n \"result_ids\": [\n \"dpres_aBcD1234eFgH5678\",\n \"dpres_xYzW7890aBcD1234\"\n ],\n \"reason\": \"Meter was offline; the zeros are real\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"result_ids\": [\n \"dpres_aBcD1234eFgH5678\",\n \"dpres_xYzW7890aBcD1234\"\n ],\n \"reason\": \"Meter was offline; the zeros are real\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/bulk_reject")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"result_ids\": [\n \"dpres_aBcD1234eFgH5678\",\n \"dpres_xYzW7890aBcD1234\"\n ],\n \"reason\": \"Meter was offline; the zeros are real\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "dpres_aBcD1234eFgH5678",
"status": "pass",
"entered_value": "0.0",
"corrected": null,
"rule_id": "rule_xYzW7890aBcD1234",
"rule_version": 1,
"rule_name": "Fill ambient temperature dropouts",
"data_point_id": "in_aBcD1234eFgH5678",
"data_point_slug": "ambient-temperature-c",
"dismissed_at": null,
"dismissed_by": null,
"dismissal_reason": null,
"rejected_at": "2026-09-03T08:20:00.000Z",
"rejected_by": "Example User",
"rejection_reason": "Meter was offline; the zeros are real",
"approval_state": "rejected",
"proposed_correction": null,
"evaluated_at": "2026-09-03T08:20:00.000Z"
}
],
"errors": [
{
"id": "dpres_xYzW7890aBcD1234",
"code": "not_pending",
"message": "This correction is no longer waiting on approval."
}
]
}