Data Requests
List schedule executions
Lists the schedule’s executions, most recent first. Requires the read:project and read:data_request token scopes.
GET
/
projects
/
{project_id}
/
data_requests
/
{data_request_id}
/
schedule
/
executions
List schedule executions
curl --request GET \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions \
--header 'Authorization: <api-key>'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions', 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}/data_requests/{data_request_id}/schedule/executions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "sce_AaBbCcDdEeFfGgHh",
"status": "pending",
"window_start": "2023-11-07T05:31:56Z",
"window_end": "2023-11-07T05:31:56Z",
"error_message": "<string>",
"data_request_id": "req_AaBbCcDdEeFfGgHh",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"info": {
"items": 2,
"page_size": 20,
"total_items": 2,
"current_page": 1,
"next_page": 123,
"previous_page": 123,
"total_pages": 1,
"sort": [
{
"field": "<string>",
"direction": "asc"
}
],
"filter": [
{
"field": "<string>",
"comparator": "eq",
"value": "<unknown>"
}
],
"fields": [
"<string>"
]
}
}{
"errors": [
{
"message": "expected :page >= 1; got \"0\""
}
]
}{
"errors": [
{
"message": "API token has expired"
}
]
}{
"errors": [
{
"message": "You are not authorized to perform this action"
}
]
}{
"errors": [
{
"message": "No schedule exists for this data request"
}
]
}{
"errors": [
{
"message": "Project does not have Nexus configuration"
}
]
}Authorizations
Path Parameters
The project's friendly ID (e.g. prj_aBcD1234eFgH5678).
The data request's friendly ID (e.g. req_aBcD1234eFgH5678).
Pattern:
^req_[A-Za-z0-9]{16}$Query Parameters
The page to return, starting at 1. A value below 1 or a non-numeric value returns 400.
Required range:
x >= 1Rows per page, from 1 to 200. A value below 1 counts as 1 and a value above 200 as 200; a non-numeric value uses the default.
Required range:
1 <= x <= 200⌘I
List schedule executions
curl --request GET \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions \
--header 'Authorization: <api-key>'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions', 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}/data_requests/{data_request_id}/schedule/executions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/data_requests/{data_request_id}/schedule/executions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "sce_AaBbCcDdEeFfGgHh",
"status": "pending",
"window_start": "2023-11-07T05:31:56Z",
"window_end": "2023-11-07T05:31:56Z",
"error_message": "<string>",
"data_request_id": "req_AaBbCcDdEeFfGgHh",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"info": {
"items": 2,
"page_size": 20,
"total_items": 2,
"current_page": 1,
"next_page": 123,
"previous_page": 123,
"total_pages": 1,
"sort": [
{
"field": "<string>",
"direction": "asc"
}
],
"filter": [
{
"field": "<string>",
"comparator": "eq",
"value": "<unknown>"
}
],
"fields": [
"<string>"
]
}
}{
"errors": [
{
"message": "expected :page >= 1; got \"0\""
}
]
}{
"errors": [
{
"message": "API token has expired"
}
]
}{
"errors": [
{
"message": "You are not authorized to perform this action"
}
]
}{
"errors": [
{
"message": "No schedule exists for this data request"
}
]
}{
"errors": [
{
"message": "Project does not have Nexus configuration"
}
]
}