Ensemble Forecasts
Save a Reusable Ensemble Forecast Configuration in a Workspace
POST
/
ensemble-forecast-presets
Save a Reusable Ensemble Forecast Configuration in a Workspace
curl --request POST \
--url https://quantura.studio/api/v1/ensemble-forecast-presets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"configuration": {
"prediction_length": 30,
"quantiles": [
123
],
"models": {},
"transform": "auto",
"context_length": 512,
"model_failure_policy": "fail",
"frequency": "1D",
"calendar": "NYSE",
"source": "<unknown>",
"history_lag_minutes": 0
},
"workspace_id": "<string>"
}
'import requests
url = "https://quantura.studio/api/v1/ensemble-forecast-presets"
payload = {
"name": "<string>",
"configuration": {
"prediction_length": 30,
"quantiles": [123],
"models": {},
"transform": "auto",
"context_length": 512,
"model_failure_policy": "fail",
"frequency": "1D",
"calendar": "NYSE",
"source": "<unknown>",
"history_lag_minutes": 0
},
"workspace_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
configuration: {
prediction_length: 30,
quantiles: [123],
models: {},
transform: 'auto',
context_length: 512,
model_failure_policy: 'fail',
frequency: '1D',
calendar: 'NYSE',
source: '<unknown>',
history_lag_minutes: 0
},
workspace_id: '<string>'
})
};
fetch('https://quantura.studio/api/v1/ensemble-forecast-presets', 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://quantura.studio/api/v1/ensemble-forecast-presets",
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([
'name' => '<string>',
'configuration' => [
'prediction_length' => 30,
'quantiles' => [
123
],
'models' => [
],
'transform' => 'auto',
'context_length' => 512,
'model_failure_policy' => 'fail',
'frequency' => '1D',
'calendar' => 'NYSE',
'source' => '<unknown>',
'history_lag_minutes' => 0
],
'workspace_id' => '<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://quantura.studio/api/v1/ensemble-forecast-presets"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"configuration\": {\n \"prediction_length\": 30,\n \"quantiles\": [\n 123\n ],\n \"models\": {},\n \"transform\": \"auto\",\n \"context_length\": 512,\n \"model_failure_policy\": \"fail\",\n \"frequency\": \"1D\",\n \"calendar\": \"NYSE\",\n \"source\": \"<unknown>\",\n \"history_lag_minutes\": 0\n },\n \"workspace_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://quantura.studio/api/v1/ensemble-forecast-presets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"configuration\": {\n \"prediction_length\": 30,\n \"quantiles\": [\n 123\n ],\n \"models\": {},\n \"transform\": \"auto\",\n \"context_length\": 512,\n \"model_failure_policy\": \"fail\",\n \"frequency\": \"1D\",\n \"calendar\": \"NYSE\",\n \"source\": \"<unknown>\",\n \"history_lag_minutes\": 0\n },\n \"workspace_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quantura.studio/api/v1/ensemble-forecast-presets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"configuration\": {\n \"prediction_length\": 30,\n \"quantiles\": [\n 123\n ],\n \"models\": {},\n \"transform\": \"auto\",\n \"context_length\": 512,\n \"model_failure_policy\": \"fail\",\n \"frequency\": \"1D\",\n \"calendar\": \"NYSE\",\n \"source\": \"<unknown>\",\n \"history_lag_minutes\": 0\n },\n \"workspace_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "preset_01JEXAMPLE",
"name": "Balanced Ensemble",
"workspace_id": "ws_01JEXAMPLE9Y6Z"
},
"meta": {
"api_version": "v1"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Maximum string length:
100Pass a forecast configuration to save reusable model and history settings. Optional source contributes only history controls; saving a preset never starts inference or stores source data.
Show child attributes
Show child attributes
Response
Preset created. Returned configuration.history_controls retains validated limit, history phase, lookback and cutoff. Dataset rows and resource identifiers are not stored in presets.
The response is of type object.
⌘I
Save a Reusable Ensemble Forecast Configuration in a Workspace
curl --request POST \
--url https://quantura.studio/api/v1/ensemble-forecast-presets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"configuration": {
"prediction_length": 30,
"quantiles": [
123
],
"models": {},
"transform": "auto",
"context_length": 512,
"model_failure_policy": "fail",
"frequency": "1D",
"calendar": "NYSE",
"source": "<unknown>",
"history_lag_minutes": 0
},
"workspace_id": "<string>"
}
'import requests
url = "https://quantura.studio/api/v1/ensemble-forecast-presets"
payload = {
"name": "<string>",
"configuration": {
"prediction_length": 30,
"quantiles": [123],
"models": {},
"transform": "auto",
"context_length": 512,
"model_failure_policy": "fail",
"frequency": "1D",
"calendar": "NYSE",
"source": "<unknown>",
"history_lag_minutes": 0
},
"workspace_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
configuration: {
prediction_length: 30,
quantiles: [123],
models: {},
transform: 'auto',
context_length: 512,
model_failure_policy: 'fail',
frequency: '1D',
calendar: 'NYSE',
source: '<unknown>',
history_lag_minutes: 0
},
workspace_id: '<string>'
})
};
fetch('https://quantura.studio/api/v1/ensemble-forecast-presets', 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://quantura.studio/api/v1/ensemble-forecast-presets",
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([
'name' => '<string>',
'configuration' => [
'prediction_length' => 30,
'quantiles' => [
123
],
'models' => [
],
'transform' => 'auto',
'context_length' => 512,
'model_failure_policy' => 'fail',
'frequency' => '1D',
'calendar' => 'NYSE',
'source' => '<unknown>',
'history_lag_minutes' => 0
],
'workspace_id' => '<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://quantura.studio/api/v1/ensemble-forecast-presets"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"configuration\": {\n \"prediction_length\": 30,\n \"quantiles\": [\n 123\n ],\n \"models\": {},\n \"transform\": \"auto\",\n \"context_length\": 512,\n \"model_failure_policy\": \"fail\",\n \"frequency\": \"1D\",\n \"calendar\": \"NYSE\",\n \"source\": \"<unknown>\",\n \"history_lag_minutes\": 0\n },\n \"workspace_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://quantura.studio/api/v1/ensemble-forecast-presets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"configuration\": {\n \"prediction_length\": 30,\n \"quantiles\": [\n 123\n ],\n \"models\": {},\n \"transform\": \"auto\",\n \"context_length\": 512,\n \"model_failure_policy\": \"fail\",\n \"frequency\": \"1D\",\n \"calendar\": \"NYSE\",\n \"source\": \"<unknown>\",\n \"history_lag_minutes\": 0\n },\n \"workspace_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quantura.studio/api/v1/ensemble-forecast-presets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"configuration\": {\n \"prediction_length\": 30,\n \"quantiles\": [\n 123\n ],\n \"models\": {},\n \"transform\": \"auto\",\n \"context_length\": 512,\n \"model_failure_policy\": \"fail\",\n \"frequency\": \"1D\",\n \"calendar\": \"NYSE\",\n \"source\": \"<unknown>\",\n \"history_lag_minutes\": 0\n },\n \"workspace_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "preset_01JEXAMPLE",
"name": "Balanced Ensemble",
"workspace_id": "ws_01JEXAMPLE9Y6Z"
},
"meta": {
"api_version": "v1"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}