save dashboard
curl --request PUT \
--url https://engine.example.com/api/v1/dashboards/{dashboard_id} \
--header 'Content-Type: application/json' \
--data '
{
"definition": {
"name": "<string>",
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"settings": {
"ansi_enabled": true,
"case_sensitive": true,
"current_catalog": "<string>",
"namespace": [
"<string>"
],
"time_zone": "<string>"
},
"sql": "<string>",
"source_query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"description": "<string>",
"options": {
"compute_requirements": {
"cpu_millicores": 2,
"memory_bytes": 2,
"tuning": {
"batch_rows": 2,
"file_read_concurrency": 2,
"input_prefetch_batches": 1,
"native_parquet_scan": true,
"output_buffer_batches": 2,
"query_memory_bytes": 2,
"spill_bytes": 1,
"threads": 2,
"write_batch_rows": 2,
"write_parallelism": 2
}
},
"deployment_profile": "<string>",
"execution_target": "DataFusion",
"execution_timeout": {
"nanos": 499999999,
"secs": 1
},
"max_attempts": 2,
"missed_run_policy": "RunOnce",
"overlap_policy": "Wait",
"parallelism": 2,
"profile": "<string>",
"provisioner": "<string>",
"queue_timeout": {
"nanos": 499999999,
"secs": 1
},
"start_paused": true,
"worker_scope": "Task",
"xray": true
},
"parameters": {},
"retention": {
"max_age_days": 1,
"max_snapshots": 1
},
"schedule": "Manual",
"widgets": [
{
"kind": "Table",
"widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chart": {
"colors": [
"<string>"
],
"decimals": 1,
"legend": true,
"number_format": "<string>",
"series_column": "<string>",
"sort_column": "<string>",
"sort_direction": "<string>",
"stacked": true,
"table_columns": [
"<string>"
],
"thresholds": [
"<unknown>"
],
"x_column": "<string>",
"x_label": "<string>",
"y_columns": [
"<string>"
],
"y_label": "<string>"
},
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"layout": {
"h": 1,
"w": 1,
"x": 1,
"y": 1
},
"markdown": "<string>",
"title": "<string>"
}
]
},
"expected_revision": 1,
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://engine.example.com/api/v1/dashboards/{dashboard_id}"
payload = {
"definition": {
"name": "<string>",
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"settings": {
"ansi_enabled": True,
"case_sensitive": True,
"current_catalog": "<string>",
"namespace": ["<string>"],
"time_zone": "<string>"
},
"sql": "<string>",
"source_query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"description": "<string>",
"options": {
"compute_requirements": {
"cpu_millicores": 2,
"memory_bytes": 2,
"tuning": {
"batch_rows": 2,
"file_read_concurrency": 2,
"input_prefetch_batches": 1,
"native_parquet_scan": True,
"output_buffer_batches": 2,
"query_memory_bytes": 2,
"spill_bytes": 1,
"threads": 2,
"write_batch_rows": 2,
"write_parallelism": 2
}
},
"deployment_profile": "<string>",
"execution_target": "DataFusion",
"execution_timeout": {
"nanos": 499999999,
"secs": 1
},
"max_attempts": 2,
"missed_run_policy": "RunOnce",
"overlap_policy": "Wait",
"parallelism": 2,
"profile": "<string>",
"provisioner": "<string>",
"queue_timeout": {
"nanos": 499999999,
"secs": 1
},
"start_paused": True,
"worker_scope": "Task",
"xray": True
},
"parameters": {},
"retention": {
"max_age_days": 1,
"max_snapshots": 1
},
"schedule": "Manual",
"widgets": [
{
"kind": "Table",
"widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chart": {
"colors": ["<string>"],
"decimals": 1,
"legend": True,
"number_format": "<string>",
"series_column": "<string>",
"sort_column": "<string>",
"sort_direction": "<string>",
"stacked": True,
"table_columns": ["<string>"],
"thresholds": ["<unknown>"],
"x_column": "<string>",
"x_label": "<string>",
"y_columns": ["<string>"],
"y_label": "<string>"
},
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"layout": {
"h": 1,
"w": 1,
"x": 1,
"y": 1
},
"markdown": "<string>",
"title": "<string>"
}
]
},
"expected_revision": 1,
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
definition: {
name: '<string>',
datasets: [
{
dataset_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
settings: {
ansi_enabled: true,
case_sensitive: true,
current_catalog: '<string>',
namespace: ['<string>'],
time_zone: '<string>'
},
sql: '<string>',
source_query_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
description: '<string>',
options: {
compute_requirements: {
cpu_millicores: 2,
memory_bytes: 2,
tuning: {
batch_rows: 2,
file_read_concurrency: 2,
input_prefetch_batches: 1,
native_parquet_scan: true,
output_buffer_batches: 2,
query_memory_bytes: 2,
spill_bytes: 1,
threads: 2,
write_batch_rows: 2,
write_parallelism: 2
}
},
deployment_profile: '<string>',
execution_target: 'DataFusion',
execution_timeout: {nanos: 499999999, secs: 1},
max_attempts: 2,
missed_run_policy: 'RunOnce',
overlap_policy: 'Wait',
parallelism: 2,
profile: '<string>',
provisioner: '<string>',
queue_timeout: {nanos: 499999999, secs: 1},
start_paused: true,
worker_scope: 'Task',
xray: true
},
parameters: {},
retention: {max_age_days: 1, max_snapshots: 1},
schedule: 'Manual',
widgets: [
{
kind: 'Table',
widget_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
chart: {
colors: ['<string>'],
decimals: 1,
legend: true,
number_format: '<string>',
series_column: '<string>',
sort_column: '<string>',
sort_direction: '<string>',
stacked: true,
table_columns: ['<string>'],
thresholds: ['<unknown>'],
x_column: '<string>',
x_label: '<string>',
y_columns: ['<string>'],
y_label: '<string>'
},
dataset_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
layout: {h: 1, w: 1, x: 1, y: 1},
markdown: '<string>',
title: '<string>'
}
]
},
expected_revision: 1,
submission_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://engine.example.com/api/v1/dashboards/{dashboard_id}', 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://engine.example.com/api/v1/dashboards/{dashboard_id}",
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([
'definition' => [
'name' => '<string>',
'datasets' => [
[
'dataset_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'name' => '<string>',
'settings' => [
'ansi_enabled' => true,
'case_sensitive' => true,
'current_catalog' => '<string>',
'namespace' => [
'<string>'
],
'time_zone' => '<string>'
],
'sql' => '<string>',
'source_query_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'description' => '<string>',
'options' => [
'compute_requirements' => [
'cpu_millicores' => 2,
'memory_bytes' => 2,
'tuning' => [
'batch_rows' => 2,
'file_read_concurrency' => 2,
'input_prefetch_batches' => 1,
'native_parquet_scan' => true,
'output_buffer_batches' => 2,
'query_memory_bytes' => 2,
'spill_bytes' => 1,
'threads' => 2,
'write_batch_rows' => 2,
'write_parallelism' => 2
]
],
'deployment_profile' => '<string>',
'execution_target' => 'DataFusion',
'execution_timeout' => [
'nanos' => 499999999,
'secs' => 1
],
'max_attempts' => 2,
'missed_run_policy' => 'RunOnce',
'overlap_policy' => 'Wait',
'parallelism' => 2,
'profile' => '<string>',
'provisioner' => '<string>',
'queue_timeout' => [
'nanos' => 499999999,
'secs' => 1
],
'start_paused' => true,
'worker_scope' => 'Task',
'xray' => true
],
'parameters' => [
],
'retention' => [
'max_age_days' => 1,
'max_snapshots' => 1
],
'schedule' => 'Manual',
'widgets' => [
[
'kind' => 'Table',
'widget_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'chart' => [
'colors' => [
'<string>'
],
'decimals' => 1,
'legend' => true,
'number_format' => '<string>',
'series_column' => '<string>',
'sort_column' => '<string>',
'sort_direction' => '<string>',
'stacked' => true,
'table_columns' => [
'<string>'
],
'thresholds' => [
'<unknown>'
],
'x_column' => '<string>',
'x_label' => '<string>',
'y_columns' => [
'<string>'
],
'y_label' => '<string>'
],
'dataset_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'layout' => [
'h' => 1,
'w' => 1,
'x' => 1,
'y' => 1
],
'markdown' => '<string>',
'title' => '<string>'
]
]
],
'expected_revision' => 1,
'submission_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"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://engine.example.com/api/v1/dashboards/{dashboard_id}"
payload := strings.NewReader("{\n \"definition\": {\n \"name\": \"<string>\",\n \"datasets\": [\n {\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"settings\": {\n \"ansi_enabled\": true,\n \"case_sensitive\": true,\n \"current_catalog\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ],\n \"time_zone\": \"<string>\"\n },\n \"sql\": \"<string>\",\n \"source_query_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"description\": \"<string>\",\n \"options\": {\n \"compute_requirements\": {\n \"cpu_millicores\": 2,\n \"memory_bytes\": 2,\n \"tuning\": {\n \"batch_rows\": 2,\n \"file_read_concurrency\": 2,\n \"input_prefetch_batches\": 1,\n \"native_parquet_scan\": true,\n \"output_buffer_batches\": 2,\n \"query_memory_bytes\": 2,\n \"spill_bytes\": 1,\n \"threads\": 2,\n \"write_batch_rows\": 2,\n \"write_parallelism\": 2\n }\n },\n \"deployment_profile\": \"<string>\",\n \"execution_target\": \"DataFusion\",\n \"execution_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"max_attempts\": 2,\n \"missed_run_policy\": \"RunOnce\",\n \"overlap_policy\": \"Wait\",\n \"parallelism\": 2,\n \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"queue_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"start_paused\": true,\n \"worker_scope\": \"Task\",\n \"xray\": true\n },\n \"parameters\": {},\n \"retention\": {\n \"max_age_days\": 1,\n \"max_snapshots\": 1\n },\n \"schedule\": \"Manual\",\n \"widgets\": [\n {\n \"kind\": \"Table\",\n \"widget_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"chart\": {\n \"colors\": [\n \"<string>\"\n ],\n \"decimals\": 1,\n \"legend\": true,\n \"number_format\": \"<string>\",\n \"series_column\": \"<string>\",\n \"sort_column\": \"<string>\",\n \"sort_direction\": \"<string>\",\n \"stacked\": true,\n \"table_columns\": [\n \"<string>\"\n ],\n \"thresholds\": [\n \"<unknown>\"\n ],\n \"x_column\": \"<string>\",\n \"x_label\": \"<string>\",\n \"y_columns\": [\n \"<string>\"\n ],\n \"y_label\": \"<string>\"\n },\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"layout\": {\n \"h\": 1,\n \"w\": 1,\n \"x\": 1,\n \"y\": 1\n },\n \"markdown\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n },\n \"expected_revision\": 1,\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
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://engine.example.com/api/v1/dashboards/{dashboard_id}")
.header("Content-Type", "application/json")
.body("{\n \"definition\": {\n \"name\": \"<string>\",\n \"datasets\": [\n {\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"settings\": {\n \"ansi_enabled\": true,\n \"case_sensitive\": true,\n \"current_catalog\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ],\n \"time_zone\": \"<string>\"\n },\n \"sql\": \"<string>\",\n \"source_query_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"description\": \"<string>\",\n \"options\": {\n \"compute_requirements\": {\n \"cpu_millicores\": 2,\n \"memory_bytes\": 2,\n \"tuning\": {\n \"batch_rows\": 2,\n \"file_read_concurrency\": 2,\n \"input_prefetch_batches\": 1,\n \"native_parquet_scan\": true,\n \"output_buffer_batches\": 2,\n \"query_memory_bytes\": 2,\n \"spill_bytes\": 1,\n \"threads\": 2,\n \"write_batch_rows\": 2,\n \"write_parallelism\": 2\n }\n },\n \"deployment_profile\": \"<string>\",\n \"execution_target\": \"DataFusion\",\n \"execution_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"max_attempts\": 2,\n \"missed_run_policy\": \"RunOnce\",\n \"overlap_policy\": \"Wait\",\n \"parallelism\": 2,\n \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"queue_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"start_paused\": true,\n \"worker_scope\": \"Task\",\n \"xray\": true\n },\n \"parameters\": {},\n \"retention\": {\n \"max_age_days\": 1,\n \"max_snapshots\": 1\n },\n \"schedule\": \"Manual\",\n \"widgets\": [\n {\n \"kind\": \"Table\",\n \"widget_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"chart\": {\n \"colors\": [\n \"<string>\"\n ],\n \"decimals\": 1,\n \"legend\": true,\n \"number_format\": \"<string>\",\n \"series_column\": \"<string>\",\n \"sort_column\": \"<string>\",\n \"sort_direction\": \"<string>\",\n \"stacked\": true,\n \"table_columns\": [\n \"<string>\"\n ],\n \"thresholds\": [\n \"<unknown>\"\n ],\n \"x_column\": \"<string>\",\n \"x_label\": \"<string>\",\n \"y_columns\": [\n \"<string>\"\n ],\n \"y_label\": \"<string>\"\n },\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"layout\": {\n \"h\": 1,\n \"w\": 1,\n \"x\": 1,\n \"y\": 1\n },\n \"markdown\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n },\n \"expected_revision\": 1,\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://engine.example.com/api/v1/dashboards/{dashboard_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"definition\": {\n \"name\": \"<string>\",\n \"datasets\": [\n {\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"settings\": {\n \"ansi_enabled\": true,\n \"case_sensitive\": true,\n \"current_catalog\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ],\n \"time_zone\": \"<string>\"\n },\n \"sql\": \"<string>\",\n \"source_query_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"description\": \"<string>\",\n \"options\": {\n \"compute_requirements\": {\n \"cpu_millicores\": 2,\n \"memory_bytes\": 2,\n \"tuning\": {\n \"batch_rows\": 2,\n \"file_read_concurrency\": 2,\n \"input_prefetch_batches\": 1,\n \"native_parquet_scan\": true,\n \"output_buffer_batches\": 2,\n \"query_memory_bytes\": 2,\n \"spill_bytes\": 1,\n \"threads\": 2,\n \"write_batch_rows\": 2,\n \"write_parallelism\": 2\n }\n },\n \"deployment_profile\": \"<string>\",\n \"execution_target\": \"DataFusion\",\n \"execution_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"max_attempts\": 2,\n \"missed_run_policy\": \"RunOnce\",\n \"overlap_policy\": \"Wait\",\n \"parallelism\": 2,\n \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"queue_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"start_paused\": true,\n \"worker_scope\": \"Task\",\n \"xray\": true\n },\n \"parameters\": {},\n \"retention\": {\n \"max_age_days\": 1,\n \"max_snapshots\": 1\n },\n \"schedule\": \"Manual\",\n \"widgets\": [\n {\n \"kind\": \"Table\",\n \"widget_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"chart\": {\n \"colors\": [\n \"<string>\"\n ],\n \"decimals\": 1,\n \"legend\": true,\n \"number_format\": \"<string>\",\n \"series_column\": \"<string>\",\n \"sort_column\": \"<string>\",\n \"sort_direction\": \"<string>\",\n \"stacked\": true,\n \"table_columns\": [\n \"<string>\"\n ],\n \"thresholds\": [\n \"<unknown>\"\n ],\n \"x_column\": \"<string>\",\n \"x_label\": \"<string>\",\n \"y_columns\": [\n \"<string>\"\n ],\n \"y_label\": \"<string>\"\n },\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"layout\": {\n \"h\": 1,\n \"w\": 1,\n \"x\": 1,\n \"y\": 1\n },\n \"markdown\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n },\n \"expected_revision\": 1,\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"dashboard": {
"active_definition": {
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"settings": {
"ansi_enabled": true,
"case_sensitive": true,
"current_catalog": "<string>",
"namespace": [
"<string>"
],
"time_zone": "<string>"
},
"source_query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sql": "<string>"
}
],
"description": "<string>",
"name": "<string>",
"options": {
"compute_requirements": {
"cpu_millicores": 2,
"memory_bytes": 2,
"tuning": {
"batch_rows": 2,
"file_read_concurrency": 2,
"input_prefetch_batches": 1,
"output_buffer_batches": 2,
"query_memory_bytes": 2,
"spill_bytes": 1,
"threads": 2,
"write_batch_rows": 2,
"write_parallelism": 2,
"native_parquet_scan": true
}
},
"execution_target": "DataFusion",
"execution_timeout": {
"nanos": 499999999,
"secs": 1
},
"max_attempts": 2,
"missed_run_policy": "RunOnce",
"overlap_policy": "Wait",
"parallelism": 2,
"queue_timeout": {
"nanos": 499999999,
"secs": 1
},
"worker_scope": "Task",
"deployment_profile": "<string>",
"profile": "<string>",
"provisioner": "<string>",
"start_paused": true,
"xray": true
},
"parameters": {},
"retention": {
"max_age_days": 1,
"max_snapshots": 1
},
"schedule": "Manual",
"widgets": [
{
"chart": {
"colors": [
"<string>"
],
"decimals": 1,
"legend": true,
"number_format": "<string>",
"series_column": "<string>",
"sort_column": "<string>",
"sort_direction": "<string>",
"stacked": true,
"table_columns": [
"<string>"
],
"thresholds": [
"<unknown>"
],
"x_column": "<string>",
"x_label": "<string>",
"y_columns": [
"<string>"
],
"y_label": "<string>"
},
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "Table",
"layout": {
"h": 1,
"w": 1,
"x": 1,
"y": 1
},
"markdown": "<string>",
"title": "<string>",
"widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"active_revision": 1,
"created_at": {
"unix_millis": 123
},
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"definition": {
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"settings": {
"ansi_enabled": true,
"case_sensitive": true,
"current_catalog": "<string>",
"namespace": [
"<string>"
],
"time_zone": "<string>"
},
"source_query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sql": "<string>"
}
],
"description": "<string>",
"name": "<string>",
"options": {
"compute_requirements": {
"cpu_millicores": 2,
"memory_bytes": 2,
"tuning": {
"batch_rows": 2,
"file_read_concurrency": 2,
"input_prefetch_batches": 1,
"output_buffer_batches": 2,
"query_memory_bytes": 2,
"spill_bytes": 1,
"threads": 2,
"write_batch_rows": 2,
"write_parallelism": 2,
"native_parquet_scan": true
}
},
"execution_target": "DataFusion",
"execution_timeout": {
"nanos": 499999999,
"secs": 1
},
"max_attempts": 2,
"missed_run_policy": "RunOnce",
"overlap_policy": "Wait",
"parallelism": 2,
"queue_timeout": {
"nanos": 499999999,
"secs": 1
},
"worker_scope": "Task",
"deployment_profile": "<string>",
"profile": "<string>",
"provisioner": "<string>",
"start_paused": true,
"xray": true
},
"parameters": {},
"retention": {
"max_age_days": 1,
"max_snapshots": 1
},
"schedule": "Manual",
"widgets": [
{
"chart": {
"colors": [
"<string>"
],
"decimals": 1,
"legend": true,
"number_format": "<string>",
"series_column": "<string>",
"sort_column": "<string>",
"sort_direction": "<string>",
"stacked": true,
"table_columns": [
"<string>"
],
"thresholds": [
"<unknown>"
],
"x_column": "<string>",
"x_label": "<string>",
"y_columns": [
"<string>"
],
"y_label": "<string>"
},
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "Table",
"layout": {
"h": 1,
"w": 1,
"x": 1,
"y": 1
},
"markdown": "<string>",
"title": "<string>",
"widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"latest_refresh_at": {
"unix_millis": 123
},
"latest_refresh_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latest_refresh_status": "Pending",
"latest_snapshot_at": {
"unix_millis": 123
},
"latest_snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paused": true,
"pending_action": "<string>",
"revision": 1,
"updated_at": {
"unix_millis": 123
},
"workload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "invalid_request",
"message": "Check the request fields"
}
}Save dashboard
save dashboard. PUT /api/v1/dashboards/. Save the dedicated dashboard definition: SQL datasets, parameter definitions, widgets, layout, schedule and retention. Preser
save dashboard
curl --request PUT \
--url https://engine.example.com/api/v1/dashboards/{dashboard_id} \
--header 'Content-Type: application/json' \
--data '
{
"definition": {
"name": "<string>",
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"settings": {
"ansi_enabled": true,
"case_sensitive": true,
"current_catalog": "<string>",
"namespace": [
"<string>"
],
"time_zone": "<string>"
},
"sql": "<string>",
"source_query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"description": "<string>",
"options": {
"compute_requirements": {
"cpu_millicores": 2,
"memory_bytes": 2,
"tuning": {
"batch_rows": 2,
"file_read_concurrency": 2,
"input_prefetch_batches": 1,
"native_parquet_scan": true,
"output_buffer_batches": 2,
"query_memory_bytes": 2,
"spill_bytes": 1,
"threads": 2,
"write_batch_rows": 2,
"write_parallelism": 2
}
},
"deployment_profile": "<string>",
"execution_target": "DataFusion",
"execution_timeout": {
"nanos": 499999999,
"secs": 1
},
"max_attempts": 2,
"missed_run_policy": "RunOnce",
"overlap_policy": "Wait",
"parallelism": 2,
"profile": "<string>",
"provisioner": "<string>",
"queue_timeout": {
"nanos": 499999999,
"secs": 1
},
"start_paused": true,
"worker_scope": "Task",
"xray": true
},
"parameters": {},
"retention": {
"max_age_days": 1,
"max_snapshots": 1
},
"schedule": "Manual",
"widgets": [
{
"kind": "Table",
"widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chart": {
"colors": [
"<string>"
],
"decimals": 1,
"legend": true,
"number_format": "<string>",
"series_column": "<string>",
"sort_column": "<string>",
"sort_direction": "<string>",
"stacked": true,
"table_columns": [
"<string>"
],
"thresholds": [
"<unknown>"
],
"x_column": "<string>",
"x_label": "<string>",
"y_columns": [
"<string>"
],
"y_label": "<string>"
},
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"layout": {
"h": 1,
"w": 1,
"x": 1,
"y": 1
},
"markdown": "<string>",
"title": "<string>"
}
]
},
"expected_revision": 1,
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://engine.example.com/api/v1/dashboards/{dashboard_id}"
payload = {
"definition": {
"name": "<string>",
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"settings": {
"ansi_enabled": True,
"case_sensitive": True,
"current_catalog": "<string>",
"namespace": ["<string>"],
"time_zone": "<string>"
},
"sql": "<string>",
"source_query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"description": "<string>",
"options": {
"compute_requirements": {
"cpu_millicores": 2,
"memory_bytes": 2,
"tuning": {
"batch_rows": 2,
"file_read_concurrency": 2,
"input_prefetch_batches": 1,
"native_parquet_scan": True,
"output_buffer_batches": 2,
"query_memory_bytes": 2,
"spill_bytes": 1,
"threads": 2,
"write_batch_rows": 2,
"write_parallelism": 2
}
},
"deployment_profile": "<string>",
"execution_target": "DataFusion",
"execution_timeout": {
"nanos": 499999999,
"secs": 1
},
"max_attempts": 2,
"missed_run_policy": "RunOnce",
"overlap_policy": "Wait",
"parallelism": 2,
"profile": "<string>",
"provisioner": "<string>",
"queue_timeout": {
"nanos": 499999999,
"secs": 1
},
"start_paused": True,
"worker_scope": "Task",
"xray": True
},
"parameters": {},
"retention": {
"max_age_days": 1,
"max_snapshots": 1
},
"schedule": "Manual",
"widgets": [
{
"kind": "Table",
"widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chart": {
"colors": ["<string>"],
"decimals": 1,
"legend": True,
"number_format": "<string>",
"series_column": "<string>",
"sort_column": "<string>",
"sort_direction": "<string>",
"stacked": True,
"table_columns": ["<string>"],
"thresholds": ["<unknown>"],
"x_column": "<string>",
"x_label": "<string>",
"y_columns": ["<string>"],
"y_label": "<string>"
},
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"layout": {
"h": 1,
"w": 1,
"x": 1,
"y": 1
},
"markdown": "<string>",
"title": "<string>"
}
]
},
"expected_revision": 1,
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
definition: {
name: '<string>',
datasets: [
{
dataset_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
settings: {
ansi_enabled: true,
case_sensitive: true,
current_catalog: '<string>',
namespace: ['<string>'],
time_zone: '<string>'
},
sql: '<string>',
source_query_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
description: '<string>',
options: {
compute_requirements: {
cpu_millicores: 2,
memory_bytes: 2,
tuning: {
batch_rows: 2,
file_read_concurrency: 2,
input_prefetch_batches: 1,
native_parquet_scan: true,
output_buffer_batches: 2,
query_memory_bytes: 2,
spill_bytes: 1,
threads: 2,
write_batch_rows: 2,
write_parallelism: 2
}
},
deployment_profile: '<string>',
execution_target: 'DataFusion',
execution_timeout: {nanos: 499999999, secs: 1},
max_attempts: 2,
missed_run_policy: 'RunOnce',
overlap_policy: 'Wait',
parallelism: 2,
profile: '<string>',
provisioner: '<string>',
queue_timeout: {nanos: 499999999, secs: 1},
start_paused: true,
worker_scope: 'Task',
xray: true
},
parameters: {},
retention: {max_age_days: 1, max_snapshots: 1},
schedule: 'Manual',
widgets: [
{
kind: 'Table',
widget_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
chart: {
colors: ['<string>'],
decimals: 1,
legend: true,
number_format: '<string>',
series_column: '<string>',
sort_column: '<string>',
sort_direction: '<string>',
stacked: true,
table_columns: ['<string>'],
thresholds: ['<unknown>'],
x_column: '<string>',
x_label: '<string>',
y_columns: ['<string>'],
y_label: '<string>'
},
dataset_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
layout: {h: 1, w: 1, x: 1, y: 1},
markdown: '<string>',
title: '<string>'
}
]
},
expected_revision: 1,
submission_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://engine.example.com/api/v1/dashboards/{dashboard_id}', 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://engine.example.com/api/v1/dashboards/{dashboard_id}",
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([
'definition' => [
'name' => '<string>',
'datasets' => [
[
'dataset_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'name' => '<string>',
'settings' => [
'ansi_enabled' => true,
'case_sensitive' => true,
'current_catalog' => '<string>',
'namespace' => [
'<string>'
],
'time_zone' => '<string>'
],
'sql' => '<string>',
'source_query_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'description' => '<string>',
'options' => [
'compute_requirements' => [
'cpu_millicores' => 2,
'memory_bytes' => 2,
'tuning' => [
'batch_rows' => 2,
'file_read_concurrency' => 2,
'input_prefetch_batches' => 1,
'native_parquet_scan' => true,
'output_buffer_batches' => 2,
'query_memory_bytes' => 2,
'spill_bytes' => 1,
'threads' => 2,
'write_batch_rows' => 2,
'write_parallelism' => 2
]
],
'deployment_profile' => '<string>',
'execution_target' => 'DataFusion',
'execution_timeout' => [
'nanos' => 499999999,
'secs' => 1
],
'max_attempts' => 2,
'missed_run_policy' => 'RunOnce',
'overlap_policy' => 'Wait',
'parallelism' => 2,
'profile' => '<string>',
'provisioner' => '<string>',
'queue_timeout' => [
'nanos' => 499999999,
'secs' => 1
],
'start_paused' => true,
'worker_scope' => 'Task',
'xray' => true
],
'parameters' => [
],
'retention' => [
'max_age_days' => 1,
'max_snapshots' => 1
],
'schedule' => 'Manual',
'widgets' => [
[
'kind' => 'Table',
'widget_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'chart' => [
'colors' => [
'<string>'
],
'decimals' => 1,
'legend' => true,
'number_format' => '<string>',
'series_column' => '<string>',
'sort_column' => '<string>',
'sort_direction' => '<string>',
'stacked' => true,
'table_columns' => [
'<string>'
],
'thresholds' => [
'<unknown>'
],
'x_column' => '<string>',
'x_label' => '<string>',
'y_columns' => [
'<string>'
],
'y_label' => '<string>'
],
'dataset_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'layout' => [
'h' => 1,
'w' => 1,
'x' => 1,
'y' => 1
],
'markdown' => '<string>',
'title' => '<string>'
]
]
],
'expected_revision' => 1,
'submission_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"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://engine.example.com/api/v1/dashboards/{dashboard_id}"
payload := strings.NewReader("{\n \"definition\": {\n \"name\": \"<string>\",\n \"datasets\": [\n {\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"settings\": {\n \"ansi_enabled\": true,\n \"case_sensitive\": true,\n \"current_catalog\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ],\n \"time_zone\": \"<string>\"\n },\n \"sql\": \"<string>\",\n \"source_query_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"description\": \"<string>\",\n \"options\": {\n \"compute_requirements\": {\n \"cpu_millicores\": 2,\n \"memory_bytes\": 2,\n \"tuning\": {\n \"batch_rows\": 2,\n \"file_read_concurrency\": 2,\n \"input_prefetch_batches\": 1,\n \"native_parquet_scan\": true,\n \"output_buffer_batches\": 2,\n \"query_memory_bytes\": 2,\n \"spill_bytes\": 1,\n \"threads\": 2,\n \"write_batch_rows\": 2,\n \"write_parallelism\": 2\n }\n },\n \"deployment_profile\": \"<string>\",\n \"execution_target\": \"DataFusion\",\n \"execution_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"max_attempts\": 2,\n \"missed_run_policy\": \"RunOnce\",\n \"overlap_policy\": \"Wait\",\n \"parallelism\": 2,\n \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"queue_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"start_paused\": true,\n \"worker_scope\": \"Task\",\n \"xray\": true\n },\n \"parameters\": {},\n \"retention\": {\n \"max_age_days\": 1,\n \"max_snapshots\": 1\n },\n \"schedule\": \"Manual\",\n \"widgets\": [\n {\n \"kind\": \"Table\",\n \"widget_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"chart\": {\n \"colors\": [\n \"<string>\"\n ],\n \"decimals\": 1,\n \"legend\": true,\n \"number_format\": \"<string>\",\n \"series_column\": \"<string>\",\n \"sort_column\": \"<string>\",\n \"sort_direction\": \"<string>\",\n \"stacked\": true,\n \"table_columns\": [\n \"<string>\"\n ],\n \"thresholds\": [\n \"<unknown>\"\n ],\n \"x_column\": \"<string>\",\n \"x_label\": \"<string>\",\n \"y_columns\": [\n \"<string>\"\n ],\n \"y_label\": \"<string>\"\n },\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"layout\": {\n \"h\": 1,\n \"w\": 1,\n \"x\": 1,\n \"y\": 1\n },\n \"markdown\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n },\n \"expected_revision\": 1,\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
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://engine.example.com/api/v1/dashboards/{dashboard_id}")
.header("Content-Type", "application/json")
.body("{\n \"definition\": {\n \"name\": \"<string>\",\n \"datasets\": [\n {\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"settings\": {\n \"ansi_enabled\": true,\n \"case_sensitive\": true,\n \"current_catalog\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ],\n \"time_zone\": \"<string>\"\n },\n \"sql\": \"<string>\",\n \"source_query_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"description\": \"<string>\",\n \"options\": {\n \"compute_requirements\": {\n \"cpu_millicores\": 2,\n \"memory_bytes\": 2,\n \"tuning\": {\n \"batch_rows\": 2,\n \"file_read_concurrency\": 2,\n \"input_prefetch_batches\": 1,\n \"native_parquet_scan\": true,\n \"output_buffer_batches\": 2,\n \"query_memory_bytes\": 2,\n \"spill_bytes\": 1,\n \"threads\": 2,\n \"write_batch_rows\": 2,\n \"write_parallelism\": 2\n }\n },\n \"deployment_profile\": \"<string>\",\n \"execution_target\": \"DataFusion\",\n \"execution_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"max_attempts\": 2,\n \"missed_run_policy\": \"RunOnce\",\n \"overlap_policy\": \"Wait\",\n \"parallelism\": 2,\n \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"queue_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"start_paused\": true,\n \"worker_scope\": \"Task\",\n \"xray\": true\n },\n \"parameters\": {},\n \"retention\": {\n \"max_age_days\": 1,\n \"max_snapshots\": 1\n },\n \"schedule\": \"Manual\",\n \"widgets\": [\n {\n \"kind\": \"Table\",\n \"widget_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"chart\": {\n \"colors\": [\n \"<string>\"\n ],\n \"decimals\": 1,\n \"legend\": true,\n \"number_format\": \"<string>\",\n \"series_column\": \"<string>\",\n \"sort_column\": \"<string>\",\n \"sort_direction\": \"<string>\",\n \"stacked\": true,\n \"table_columns\": [\n \"<string>\"\n ],\n \"thresholds\": [\n \"<unknown>\"\n ],\n \"x_column\": \"<string>\",\n \"x_label\": \"<string>\",\n \"y_columns\": [\n \"<string>\"\n ],\n \"y_label\": \"<string>\"\n },\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"layout\": {\n \"h\": 1,\n \"w\": 1,\n \"x\": 1,\n \"y\": 1\n },\n \"markdown\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n },\n \"expected_revision\": 1,\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://engine.example.com/api/v1/dashboards/{dashboard_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"definition\": {\n \"name\": \"<string>\",\n \"datasets\": [\n {\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"settings\": {\n \"ansi_enabled\": true,\n \"case_sensitive\": true,\n \"current_catalog\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ],\n \"time_zone\": \"<string>\"\n },\n \"sql\": \"<string>\",\n \"source_query_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"description\": \"<string>\",\n \"options\": {\n \"compute_requirements\": {\n \"cpu_millicores\": 2,\n \"memory_bytes\": 2,\n \"tuning\": {\n \"batch_rows\": 2,\n \"file_read_concurrency\": 2,\n \"input_prefetch_batches\": 1,\n \"native_parquet_scan\": true,\n \"output_buffer_batches\": 2,\n \"query_memory_bytes\": 2,\n \"spill_bytes\": 1,\n \"threads\": 2,\n \"write_batch_rows\": 2,\n \"write_parallelism\": 2\n }\n },\n \"deployment_profile\": \"<string>\",\n \"execution_target\": \"DataFusion\",\n \"execution_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"max_attempts\": 2,\n \"missed_run_policy\": \"RunOnce\",\n \"overlap_policy\": \"Wait\",\n \"parallelism\": 2,\n \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"queue_timeout\": {\n \"nanos\": 499999999,\n \"secs\": 1\n },\n \"start_paused\": true,\n \"worker_scope\": \"Task\",\n \"xray\": true\n },\n \"parameters\": {},\n \"retention\": {\n \"max_age_days\": 1,\n \"max_snapshots\": 1\n },\n \"schedule\": \"Manual\",\n \"widgets\": [\n {\n \"kind\": \"Table\",\n \"widget_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"chart\": {\n \"colors\": [\n \"<string>\"\n ],\n \"decimals\": 1,\n \"legend\": true,\n \"number_format\": \"<string>\",\n \"series_column\": \"<string>\",\n \"sort_column\": \"<string>\",\n \"sort_direction\": \"<string>\",\n \"stacked\": true,\n \"table_columns\": [\n \"<string>\"\n ],\n \"thresholds\": [\n \"<unknown>\"\n ],\n \"x_column\": \"<string>\",\n \"x_label\": \"<string>\",\n \"y_columns\": [\n \"<string>\"\n ],\n \"y_label\": \"<string>\"\n },\n \"dataset_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"layout\": {\n \"h\": 1,\n \"w\": 1,\n \"x\": 1,\n \"y\": 1\n },\n \"markdown\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n },\n \"expected_revision\": 1,\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"dashboard": {
"active_definition": {
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"settings": {
"ansi_enabled": true,
"case_sensitive": true,
"current_catalog": "<string>",
"namespace": [
"<string>"
],
"time_zone": "<string>"
},
"source_query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sql": "<string>"
}
],
"description": "<string>",
"name": "<string>",
"options": {
"compute_requirements": {
"cpu_millicores": 2,
"memory_bytes": 2,
"tuning": {
"batch_rows": 2,
"file_read_concurrency": 2,
"input_prefetch_batches": 1,
"output_buffer_batches": 2,
"query_memory_bytes": 2,
"spill_bytes": 1,
"threads": 2,
"write_batch_rows": 2,
"write_parallelism": 2,
"native_parquet_scan": true
}
},
"execution_target": "DataFusion",
"execution_timeout": {
"nanos": 499999999,
"secs": 1
},
"max_attempts": 2,
"missed_run_policy": "RunOnce",
"overlap_policy": "Wait",
"parallelism": 2,
"queue_timeout": {
"nanos": 499999999,
"secs": 1
},
"worker_scope": "Task",
"deployment_profile": "<string>",
"profile": "<string>",
"provisioner": "<string>",
"start_paused": true,
"xray": true
},
"parameters": {},
"retention": {
"max_age_days": 1,
"max_snapshots": 1
},
"schedule": "Manual",
"widgets": [
{
"chart": {
"colors": [
"<string>"
],
"decimals": 1,
"legend": true,
"number_format": "<string>",
"series_column": "<string>",
"sort_column": "<string>",
"sort_direction": "<string>",
"stacked": true,
"table_columns": [
"<string>"
],
"thresholds": [
"<unknown>"
],
"x_column": "<string>",
"x_label": "<string>",
"y_columns": [
"<string>"
],
"y_label": "<string>"
},
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "Table",
"layout": {
"h": 1,
"w": 1,
"x": 1,
"y": 1
},
"markdown": "<string>",
"title": "<string>",
"widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"active_revision": 1,
"created_at": {
"unix_millis": 123
},
"dashboard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"definition": {
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"settings": {
"ansi_enabled": true,
"case_sensitive": true,
"current_catalog": "<string>",
"namespace": [
"<string>"
],
"time_zone": "<string>"
},
"source_query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sql": "<string>"
}
],
"description": "<string>",
"name": "<string>",
"options": {
"compute_requirements": {
"cpu_millicores": 2,
"memory_bytes": 2,
"tuning": {
"batch_rows": 2,
"file_read_concurrency": 2,
"input_prefetch_batches": 1,
"output_buffer_batches": 2,
"query_memory_bytes": 2,
"spill_bytes": 1,
"threads": 2,
"write_batch_rows": 2,
"write_parallelism": 2,
"native_parquet_scan": true
}
},
"execution_target": "DataFusion",
"execution_timeout": {
"nanos": 499999999,
"secs": 1
},
"max_attempts": 2,
"missed_run_policy": "RunOnce",
"overlap_policy": "Wait",
"parallelism": 2,
"queue_timeout": {
"nanos": 499999999,
"secs": 1
},
"worker_scope": "Task",
"deployment_profile": "<string>",
"profile": "<string>",
"provisioner": "<string>",
"start_paused": true,
"xray": true
},
"parameters": {},
"retention": {
"max_age_days": 1,
"max_snapshots": 1
},
"schedule": "Manual",
"widgets": [
{
"chart": {
"colors": [
"<string>"
],
"decimals": 1,
"legend": true,
"number_format": "<string>",
"series_column": "<string>",
"sort_column": "<string>",
"sort_direction": "<string>",
"stacked": true,
"table_columns": [
"<string>"
],
"thresholds": [
"<unknown>"
],
"x_column": "<string>",
"x_label": "<string>",
"y_columns": [
"<string>"
],
"y_label": "<string>"
},
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "Table",
"layout": {
"h": 1,
"w": 1,
"x": 1,
"y": 1
},
"markdown": "<string>",
"title": "<string>",
"widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
},
"latest_refresh_at": {
"unix_millis": 123
},
"latest_refresh_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latest_refresh_status": "Pending",
"latest_snapshot_at": {
"unix_millis": 123
},
"latest_snapshot_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paused": true,
"pending_action": "<string>",
"revision": 1,
"updated_at": {
"unix_millis": 123
},
"workload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "invalid_request",
"message": "Check the request fields"
}
}ReferenceApplies to: Unified engine deployments
Related guidance
Addresses and access · Request identity · Errors and recovery · Pagination and resultsLast modified on November 4, 2026