Data Rules
Reject a proposed correction
Closes a proposed correction without writing it. The data point keeps its measured value, and the reason is stored against the result as rejection_reason. Only a result whose approval_state is pending can be rejected, and a decision is final. Requires corrections to be enabled on the account and a token with Data Rules write permission.
POST
/
projects
/
{project_id}
/
rule_results
/
{id}
/
reject
Reject a proposed correction
curl --request POST \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/{id}/reject \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Meter was offline; the zero is real"
}
'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/{id}/reject"
payload = { "reason": "Meter was offline; the zero is 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({reason: 'Meter was offline; the zero is real'})
};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/{id}/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/{id}/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([
'reason' => 'Meter was offline; the zero is 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/{id}/reject"
payload := strings.NewReader("{\n \"reason\": \"Meter was offline; the zero is 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/{id}/reject")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Meter was offline; the zero is real\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/{id}/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 \"reason\": \"Meter was offline; the zero is real\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "dpres_AbCd1234567890Ef",
"status": "pass",
"entered_value": "0.0",
"corrected": null,
"rule_id": "rule_Qb3k9TzdL0pWnXyz",
"rule_version": 1,
"rule_name": "Fill ambient temperature dropouts",
"data_point_id": "in_AbCd1234567890Ef",
"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": "Sam Okonkwo",
"rejection_reason": "Meter was offline; the zero is real",
"approval_state": "rejected",
"proposed_correction": null,
"evaluated_at": "2026-09-03T08:20:00.000Z"
}
}Authorizations
Path Parameters
Rule-result friendly ID in the dpres_XXXX syntax, from the rule's results list.
Body
application/json
Why the proposal should not be applied. Stored on the result.
Minimum string length:
1Response
The rejected result.
⌘I
Reject a proposed correction
curl --request POST \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/{id}/reject \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Meter was offline; the zero is real"
}
'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/{id}/reject"
payload = { "reason": "Meter was offline; the zero is 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({reason: 'Meter was offline; the zero is real'})
};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/{id}/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/{id}/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([
'reason' => 'Meter was offline; the zero is 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/{id}/reject"
payload := strings.NewReader("{\n \"reason\": \"Meter was offline; the zero is 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/{id}/reject")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Meter was offline; the zero is real\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/rule_results/{id}/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 \"reason\": \"Meter was offline; the zero is real\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "dpres_AbCd1234567890Ef",
"status": "pass",
"entered_value": "0.0",
"corrected": null,
"rule_id": "rule_Qb3k9TzdL0pWnXyz",
"rule_version": 1,
"rule_name": "Fill ambient temperature dropouts",
"data_point_id": "in_AbCd1234567890Ef",
"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": "Sam Okonkwo",
"rejection_reason": "Meter was offline; the zero is real",
"approval_state": "rejected",
"proposed_correction": null,
"evaluated_at": "2026-09-03T08:20:00.000Z"
}
}