ConfigureDatasetRefreshAPI mirrors the erdo_configure_dataset_refresh MCP
curl --request PUT \
--url https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_prompt": "<string>",
"context_dataset_slugs": [
"<string>"
],
"key_column": "<string>",
"live_write_mode": "<string>",
"parameters": {},
"payload_schema": {},
"refresh_mode": "<string>",
"refresh_on_view_debounce_seconds": -1,
"refresh_on_view_enabled": true,
"refresh_on_view_stale_after_seconds": -1,
"sample_payload": {},
"schedule": "<string>",
"script": "<string>",
"script_entrypoint": "<string>",
"strategy": "<string>",
"timezone": "<string>",
"transform_js": "<string>"
}
'import requests
url = "https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh"
payload = {
"agent_prompt": "<string>",
"context_dataset_slugs": ["<string>"],
"key_column": "<string>",
"live_write_mode": "<string>",
"parameters": {},
"payload_schema": {},
"refresh_mode": "<string>",
"refresh_on_view_debounce_seconds": -1,
"refresh_on_view_enabled": True,
"refresh_on_view_stale_after_seconds": -1,
"sample_payload": {},
"schedule": "<string>",
"script": "<string>",
"script_entrypoint": "<string>",
"strategy": "<string>",
"timezone": "<string>",
"transform_js": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_prompt: '<string>',
context_dataset_slugs: ['<string>'],
key_column: '<string>',
live_write_mode: '<string>',
parameters: {},
payload_schema: {},
refresh_mode: '<string>',
refresh_on_view_debounce_seconds: -1,
refresh_on_view_enabled: true,
refresh_on_view_stale_after_seconds: -1,
sample_payload: {},
schedule: '<string>',
script: '<string>',
script_entrypoint: '<string>',
strategy: '<string>',
timezone: '<string>',
transform_js: '<string>'
})
};
fetch('https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh', 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.erdo.ai/v1/datasets/{datasetSlug}/refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'agent_prompt' => '<string>',
'context_dataset_slugs' => [
'<string>'
],
'key_column' => '<string>',
'live_write_mode' => '<string>',
'parameters' => [
],
'payload_schema' => [
],
'refresh_mode' => '<string>',
'refresh_on_view_debounce_seconds' => -1,
'refresh_on_view_enabled' => true,
'refresh_on_view_stale_after_seconds' => -1,
'sample_payload' => [
],
'schedule' => '<string>',
'script' => '<string>',
'script_entrypoint' => '<string>',
'strategy' => '<string>',
'timezone' => '<string>',
'transform_js' => '<string>'
]),
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.erdo.ai/v1/datasets/{datasetSlug}/refresh"
payload := strings.NewReader("{\n \"agent_prompt\": \"<string>\",\n \"context_dataset_slugs\": [\n \"<string>\"\n ],\n \"key_column\": \"<string>\",\n \"live_write_mode\": \"<string>\",\n \"parameters\": {},\n \"payload_schema\": {},\n \"refresh_mode\": \"<string>\",\n \"refresh_on_view_debounce_seconds\": -1,\n \"refresh_on_view_enabled\": true,\n \"refresh_on_view_stale_after_seconds\": -1,\n \"sample_payload\": {},\n \"schedule\": \"<string>\",\n \"script\": \"<string>\",\n \"script_entrypoint\": \"<string>\",\n \"strategy\": \"<string>\",\n \"timezone\": \"<string>\",\n \"transform_js\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_prompt\": \"<string>\",\n \"context_dataset_slugs\": [\n \"<string>\"\n ],\n \"key_column\": \"<string>\",\n \"live_write_mode\": \"<string>\",\n \"parameters\": {},\n \"payload_schema\": {},\n \"refresh_mode\": \"<string>\",\n \"refresh_on_view_debounce_seconds\": -1,\n \"refresh_on_view_enabled\": true,\n \"refresh_on_view_stale_after_seconds\": -1,\n \"sample_payload\": {},\n \"schedule\": \"<string>\",\n \"script\": \"<string>\",\n \"script_entrypoint\": \"<string>\",\n \"strategy\": \"<string>\",\n \"timezone\": \"<string>\",\n \"transform_js\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_prompt\": \"<string>\",\n \"context_dataset_slugs\": [\n \"<string>\"\n ],\n \"key_column\": \"<string>\",\n \"live_write_mode\": \"<string>\",\n \"parameters\": {},\n \"payload_schema\": {},\n \"refresh_mode\": \"<string>\",\n \"refresh_on_view_debounce_seconds\": -1,\n \"refresh_on_view_enabled\": true,\n \"refresh_on_view_stale_after_seconds\": -1,\n \"sample_payload\": {},\n \"schedule\": \"<string>\",\n \"script\": \"<string>\",\n \"script_entrypoint\": \"<string>\",\n \"strategy\": \"<string>\",\n \"timezone\": \"<string>\",\n \"transform_js\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset_slug": "<string>",
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_strategy": "<string>",
"refresh_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refresh_mode": "<string>",
"schedule": "<string>",
"strategy": "<string>",
"test_run": {
"duration_ms": 123,
"error": "<string>",
"success": true
},
"webhook_secret": "<string>",
"webhook_url": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}API Reference
ConfigureDatasetRefreshAPI mirrors the erdo_configure_dataset_refresh MCP
tool: it installs or replaces the configuration that keeps a dataset current. Deterministic strategies are test-run once before the call returns, and the outcome comes back on test_run.
PUT
/
v1
/
datasets
/
{datasetSlug}
/
refresh
ConfigureDatasetRefreshAPI mirrors the erdo_configure_dataset_refresh MCP
curl --request PUT \
--url https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_prompt": "<string>",
"context_dataset_slugs": [
"<string>"
],
"key_column": "<string>",
"live_write_mode": "<string>",
"parameters": {},
"payload_schema": {},
"refresh_mode": "<string>",
"refresh_on_view_debounce_seconds": -1,
"refresh_on_view_enabled": true,
"refresh_on_view_stale_after_seconds": -1,
"sample_payload": {},
"schedule": "<string>",
"script": "<string>",
"script_entrypoint": "<string>",
"strategy": "<string>",
"timezone": "<string>",
"transform_js": "<string>"
}
'import requests
url = "https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh"
payload = {
"agent_prompt": "<string>",
"context_dataset_slugs": ["<string>"],
"key_column": "<string>",
"live_write_mode": "<string>",
"parameters": {},
"payload_schema": {},
"refresh_mode": "<string>",
"refresh_on_view_debounce_seconds": -1,
"refresh_on_view_enabled": True,
"refresh_on_view_stale_after_seconds": -1,
"sample_payload": {},
"schedule": "<string>",
"script": "<string>",
"script_entrypoint": "<string>",
"strategy": "<string>",
"timezone": "<string>",
"transform_js": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
agent_prompt: '<string>',
context_dataset_slugs: ['<string>'],
key_column: '<string>',
live_write_mode: '<string>',
parameters: {},
payload_schema: {},
refresh_mode: '<string>',
refresh_on_view_debounce_seconds: -1,
refresh_on_view_enabled: true,
refresh_on_view_stale_after_seconds: -1,
sample_payload: {},
schedule: '<string>',
script: '<string>',
script_entrypoint: '<string>',
strategy: '<string>',
timezone: '<string>',
transform_js: '<string>'
})
};
fetch('https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh', 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.erdo.ai/v1/datasets/{datasetSlug}/refresh",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'agent_prompt' => '<string>',
'context_dataset_slugs' => [
'<string>'
],
'key_column' => '<string>',
'live_write_mode' => '<string>',
'parameters' => [
],
'payload_schema' => [
],
'refresh_mode' => '<string>',
'refresh_on_view_debounce_seconds' => -1,
'refresh_on_view_enabled' => true,
'refresh_on_view_stale_after_seconds' => -1,
'sample_payload' => [
],
'schedule' => '<string>',
'script' => '<string>',
'script_entrypoint' => '<string>',
'strategy' => '<string>',
'timezone' => '<string>',
'transform_js' => '<string>'
]),
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.erdo.ai/v1/datasets/{datasetSlug}/refresh"
payload := strings.NewReader("{\n \"agent_prompt\": \"<string>\",\n \"context_dataset_slugs\": [\n \"<string>\"\n ],\n \"key_column\": \"<string>\",\n \"live_write_mode\": \"<string>\",\n \"parameters\": {},\n \"payload_schema\": {},\n \"refresh_mode\": \"<string>\",\n \"refresh_on_view_debounce_seconds\": -1,\n \"refresh_on_view_enabled\": true,\n \"refresh_on_view_stale_after_seconds\": -1,\n \"sample_payload\": {},\n \"schedule\": \"<string>\",\n \"script\": \"<string>\",\n \"script_entrypoint\": \"<string>\",\n \"strategy\": \"<string>\",\n \"timezone\": \"<string>\",\n \"transform_js\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_prompt\": \"<string>\",\n \"context_dataset_slugs\": [\n \"<string>\"\n ],\n \"key_column\": \"<string>\",\n \"live_write_mode\": \"<string>\",\n \"parameters\": {},\n \"payload_schema\": {},\n \"refresh_mode\": \"<string>\",\n \"refresh_on_view_debounce_seconds\": -1,\n \"refresh_on_view_enabled\": true,\n \"refresh_on_view_stale_after_seconds\": -1,\n \"sample_payload\": {},\n \"schedule\": \"<string>\",\n \"script\": \"<string>\",\n \"script_entrypoint\": \"<string>\",\n \"strategy\": \"<string>\",\n \"timezone\": \"<string>\",\n \"transform_js\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/datasets/{datasetSlug}/refresh")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_prompt\": \"<string>\",\n \"context_dataset_slugs\": [\n \"<string>\"\n ],\n \"key_column\": \"<string>\",\n \"live_write_mode\": \"<string>\",\n \"parameters\": {},\n \"payload_schema\": {},\n \"refresh_mode\": \"<string>\",\n \"refresh_on_view_debounce_seconds\": -1,\n \"refresh_on_view_enabled\": true,\n \"refresh_on_view_stale_after_seconds\": -1,\n \"sample_payload\": {},\n \"schedule\": \"<string>\",\n \"script\": \"<string>\",\n \"script_entrypoint\": \"<string>\",\n \"strategy\": \"<string>\",\n \"timezone\": \"<string>\",\n \"transform_js\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset_slug": "<string>",
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_strategy": "<string>",
"refresh_config_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refresh_mode": "<string>",
"schedule": "<string>",
"strategy": "<string>",
"test_run": {
"duration_ms": 123,
"error": "<string>",
"success": true
},
"webhook_secret": "<string>",
"webhook_url": "<string>"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}Authorizations
An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).
Path Parameters
Body
application/json
Required range:
-2147483648 <= x <= 2147483647Required range:
-2147483648 <= x <= 2147483647Response
Success response
configure.
immediately after a deterministic refresh is installed. A configuration that saves cleanly and fails on its first real run is the failure mode this exists to catch, so the result travels back with the configure rather than waiting for the schedule to discover it.
Show child attributes
Show child attributes
secret only ever here — the read path never returns it.

