validate workload
curl --request POST \
--url https://engine.example.com/api/v1/workloads/validate \
--header 'Content-Type: application/json' \
--data '
{
"policy": "Manual",
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tasks": [
{
"name": "<string>",
"settings": {
"ansi_enabled": true,
"case_sensitive": true,
"current_catalog": "<string>",
"namespace": [
"<string>"
],
"time_zone": "<string>"
},
"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>",
"profile": "<string>",
"provisioner": "<string>",
"worker_scope": "Task",
"xray": true,
"control": {
"retry": {
"max_attempts": 1,
"backoff": "fixed",
"initial_delay_seconds": 1,
"jitter_percent": 1,
"max_delay_seconds": 1,
"python_replay_safe": true
},
"sensor": {
"condition": {
"kind": "object_exists",
"url": "<string>"
},
"timeout_seconds": 1,
"poll_interval_seconds": 1
}
},
"incremental_source": {
"branch": "<string>",
"table": {
"catalog_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"namespace": [
"<string>"
]
}
},
"python": "<string>",
"python_mode": "Batch",
"spark_plan": "<string>",
"sql": "<string>"
}
],
"dependencies": [
{
"downstream": "<string>",
"upstream": "<string>",
"input_name": "<string>"
}
],
"name": "<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_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": {},
"workflow": {
"data_windows": true,
"notifications": [
{
"channel": {
"kind": "webhook",
"url": "<string>",
"secret": "<string>"
},
"events": [
"run_started"
],
"name": "<string>",
"max_attempts": 1
}
]
}
}
'import requests
url = "https://engine.example.com/api/v1/workloads/validate"
payload = {
"policy": "Manual",
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tasks": [
{
"name": "<string>",
"settings": {
"ansi_enabled": True,
"case_sensitive": True,
"current_catalog": "<string>",
"namespace": ["<string>"],
"time_zone": "<string>"
},
"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>",
"profile": "<string>",
"provisioner": "<string>",
"worker_scope": "Task",
"xray": True,
"control": {
"retry": {
"max_attempts": 1,
"backoff": "fixed",
"initial_delay_seconds": 1,
"jitter_percent": 1,
"max_delay_seconds": 1,
"python_replay_safe": True
},
"sensor": {
"condition": {
"kind": "object_exists",
"url": "<string>"
},
"timeout_seconds": 1,
"poll_interval_seconds": 1
}
},
"incremental_source": {
"branch": "<string>",
"table": {
"catalog_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"namespace": ["<string>"]
}
},
"python": "<string>",
"python_mode": "Batch",
"spark_plan": "<string>",
"sql": "<string>"
}
],
"dependencies": [
{
"downstream": "<string>",
"upstream": "<string>",
"input_name": "<string>"
}
],
"name": "<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_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": {},
"workflow": {
"data_windows": True,
"notifications": [
{
"channel": {
"kind": "webhook",
"url": "<string>",
"secret": "<string>"
},
"events": ["run_started"],
"name": "<string>",
"max_attempts": 1
}
]
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
policy: 'Manual',
submission_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
tasks: [
{
name: '<string>',
settings: {
ansi_enabled: true,
case_sensitive: true,
current_catalog: '<string>',
namespace: ['<string>'],
time_zone: '<string>'
},
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>',
profile: '<string>',
provisioner: '<string>',
worker_scope: 'Task',
xray: true,
control: {
retry: {
max_attempts: 1,
backoff: 'fixed',
initial_delay_seconds: 1,
jitter_percent: 1,
max_delay_seconds: 1,
python_replay_safe: true
},
sensor: {
condition: {kind: 'object_exists', url: '<string>'},
timeout_seconds: 1,
poll_interval_seconds: 1
}
},
incremental_source: {
branch: '<string>',
table: {
catalog_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
namespace: ['<string>']
}
},
python: '<string>',
python_mode: 'Batch',
spark_plan: '<string>',
sql: '<string>'
}
],
dependencies: [{downstream: '<string>', upstream: '<string>', input_name: '<string>'}],
name: '<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_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: {},
workflow: {
data_windows: true,
notifications: [
{
channel: {kind: 'webhook', url: '<string>', secret: '<string>'},
events: ['run_started'],
name: '<string>',
max_attempts: 1
}
]
}
})
};
fetch('https://engine.example.com/api/v1/workloads/validate', 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/workloads/validate",
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([
'policy' => 'Manual',
'submission_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'tasks' => [
[
'name' => '<string>',
'settings' => [
'ansi_enabled' => true,
'case_sensitive' => true,
'current_catalog' => '<string>',
'namespace' => [
'<string>'
],
'time_zone' => '<string>'
],
'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>',
'profile' => '<string>',
'provisioner' => '<string>',
'worker_scope' => 'Task',
'xray' => true,
'control' => [
'retry' => [
'max_attempts' => 1,
'backoff' => 'fixed',
'initial_delay_seconds' => 1,
'jitter_percent' => 1,
'max_delay_seconds' => 1,
'python_replay_safe' => true
],
'sensor' => [
'condition' => [
'kind' => 'object_exists',
'url' => '<string>'
],
'timeout_seconds' => 1,
'poll_interval_seconds' => 1
]
],
'incremental_source' => [
'branch' => '<string>',
'table' => [
'catalog_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'name' => '<string>',
'namespace' => [
'<string>'
]
]
],
'python' => '<string>',
'python_mode' => 'Batch',
'spark_plan' => '<string>',
'sql' => '<string>'
]
],
'dependencies' => [
[
'downstream' => '<string>',
'upstream' => '<string>',
'input_name' => '<string>'
]
],
'name' => '<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_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' => [
],
'workflow' => [
'data_windows' => true,
'notifications' => [
[
'channel' => [
'kind' => 'webhook',
'url' => '<string>',
'secret' => '<string>'
],
'events' => [
'run_started'
],
'name' => '<string>',
'max_attempts' => 1
]
]
]
]),
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/workloads/validate"
payload := strings.NewReader("{\n \"policy\": \"Manual\",\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tasks\": [\n {\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 \"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 \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"worker_scope\": \"Task\",\n \"xray\": true,\n \"control\": {\n \"retry\": {\n \"max_attempts\": 1,\n \"backoff\": \"fixed\",\n \"initial_delay_seconds\": 1,\n \"jitter_percent\": 1,\n \"max_delay_seconds\": 1,\n \"python_replay_safe\": true\n },\n \"sensor\": {\n \"condition\": {\n \"kind\": \"object_exists\",\n \"url\": \"<string>\"\n },\n \"timeout_seconds\": 1,\n \"poll_interval_seconds\": 1\n }\n },\n \"incremental_source\": {\n \"branch\": \"<string>\",\n \"table\": {\n \"catalog_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ]\n }\n },\n \"python\": \"<string>\",\n \"python_mode\": \"Batch\",\n \"spark_plan\": \"<string>\",\n \"sql\": \"<string>\"\n }\n ],\n \"dependencies\": [\n {\n \"downstream\": \"<string>\",\n \"upstream\": \"<string>\",\n \"input_name\": \"<string>\"\n }\n ],\n \"name\": \"<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_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 \"workflow\": {\n \"data_windows\": true,\n \"notifications\": [\n {\n \"channel\": {\n \"kind\": \"webhook\",\n \"url\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"events\": [\n \"run_started\"\n ],\n \"name\": \"<string>\",\n \"max_attempts\": 1\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://engine.example.com/api/v1/workloads/validate")
.header("Content-Type", "application/json")
.body("{\n \"policy\": \"Manual\",\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tasks\": [\n {\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 \"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 \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"worker_scope\": \"Task\",\n \"xray\": true,\n \"control\": {\n \"retry\": {\n \"max_attempts\": 1,\n \"backoff\": \"fixed\",\n \"initial_delay_seconds\": 1,\n \"jitter_percent\": 1,\n \"max_delay_seconds\": 1,\n \"python_replay_safe\": true\n },\n \"sensor\": {\n \"condition\": {\n \"kind\": \"object_exists\",\n \"url\": \"<string>\"\n },\n \"timeout_seconds\": 1,\n \"poll_interval_seconds\": 1\n }\n },\n \"incremental_source\": {\n \"branch\": \"<string>\",\n \"table\": {\n \"catalog_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ]\n }\n },\n \"python\": \"<string>\",\n \"python_mode\": \"Batch\",\n \"spark_plan\": \"<string>\",\n \"sql\": \"<string>\"\n }\n ],\n \"dependencies\": [\n {\n \"downstream\": \"<string>\",\n \"upstream\": \"<string>\",\n \"input_name\": \"<string>\"\n }\n ],\n \"name\": \"<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_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 \"workflow\": {\n \"data_windows\": true,\n \"notifications\": [\n {\n \"channel\": {\n \"kind\": \"webhook\",\n \"url\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"events\": [\n \"run_started\"\n ],\n \"name\": \"<string>\",\n \"max_attempts\": 1\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://engine.example.com/api/v1/workloads/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"policy\": \"Manual\",\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tasks\": [\n {\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 \"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 \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"worker_scope\": \"Task\",\n \"xray\": true,\n \"control\": {\n \"retry\": {\n \"max_attempts\": 1,\n \"backoff\": \"fixed\",\n \"initial_delay_seconds\": 1,\n \"jitter_percent\": 1,\n \"max_delay_seconds\": 1,\n \"python_replay_safe\": true\n },\n \"sensor\": {\n \"condition\": {\n \"kind\": \"object_exists\",\n \"url\": \"<string>\"\n },\n \"timeout_seconds\": 1,\n \"poll_interval_seconds\": 1\n }\n },\n \"incremental_source\": {\n \"branch\": \"<string>\",\n \"table\": {\n \"catalog_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ]\n }\n },\n \"python\": \"<string>\",\n \"python_mode\": \"Batch\",\n \"spark_plan\": \"<string>\",\n \"sql\": \"<string>\"\n }\n ],\n \"dependencies\": [\n {\n \"downstream\": \"<string>\",\n \"upstream\": \"<string>\",\n \"input_name\": \"<string>\"\n }\n ],\n \"name\": \"<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_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 \"workflow\": {\n \"data_windows\": true,\n \"notifications\": [\n {\n \"channel\": {\n \"kind\": \"webhook\",\n \"url\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"events\": [\n \"run_started\"\n ],\n \"name\": \"<string>\",\n \"max_attempts\": 1\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"task_count": 1,
"valid": true,
"validation": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "Check the request fields"
}
}Validate workload
Validate a workload.
validate workload
curl --request POST \
--url https://engine.example.com/api/v1/workloads/validate \
--header 'Content-Type: application/json' \
--data '
{
"policy": "Manual",
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tasks": [
{
"name": "<string>",
"settings": {
"ansi_enabled": true,
"case_sensitive": true,
"current_catalog": "<string>",
"namespace": [
"<string>"
],
"time_zone": "<string>"
},
"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>",
"profile": "<string>",
"provisioner": "<string>",
"worker_scope": "Task",
"xray": true,
"control": {
"retry": {
"max_attempts": 1,
"backoff": "fixed",
"initial_delay_seconds": 1,
"jitter_percent": 1,
"max_delay_seconds": 1,
"python_replay_safe": true
},
"sensor": {
"condition": {
"kind": "object_exists",
"url": "<string>"
},
"timeout_seconds": 1,
"poll_interval_seconds": 1
}
},
"incremental_source": {
"branch": "<string>",
"table": {
"catalog_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"namespace": [
"<string>"
]
}
},
"python": "<string>",
"python_mode": "Batch",
"spark_plan": "<string>",
"sql": "<string>"
}
],
"dependencies": [
{
"downstream": "<string>",
"upstream": "<string>",
"input_name": "<string>"
}
],
"name": "<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_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": {},
"workflow": {
"data_windows": true,
"notifications": [
{
"channel": {
"kind": "webhook",
"url": "<string>",
"secret": "<string>"
},
"events": [
"run_started"
],
"name": "<string>",
"max_attempts": 1
}
]
}
}
'import requests
url = "https://engine.example.com/api/v1/workloads/validate"
payload = {
"policy": "Manual",
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tasks": [
{
"name": "<string>",
"settings": {
"ansi_enabled": True,
"case_sensitive": True,
"current_catalog": "<string>",
"namespace": ["<string>"],
"time_zone": "<string>"
},
"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>",
"profile": "<string>",
"provisioner": "<string>",
"worker_scope": "Task",
"xray": True,
"control": {
"retry": {
"max_attempts": 1,
"backoff": "fixed",
"initial_delay_seconds": 1,
"jitter_percent": 1,
"max_delay_seconds": 1,
"python_replay_safe": True
},
"sensor": {
"condition": {
"kind": "object_exists",
"url": "<string>"
},
"timeout_seconds": 1,
"poll_interval_seconds": 1
}
},
"incremental_source": {
"branch": "<string>",
"table": {
"catalog_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"namespace": ["<string>"]
}
},
"python": "<string>",
"python_mode": "Batch",
"spark_plan": "<string>",
"sql": "<string>"
}
],
"dependencies": [
{
"downstream": "<string>",
"upstream": "<string>",
"input_name": "<string>"
}
],
"name": "<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_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": {},
"workflow": {
"data_windows": True,
"notifications": [
{
"channel": {
"kind": "webhook",
"url": "<string>",
"secret": "<string>"
},
"events": ["run_started"],
"name": "<string>",
"max_attempts": 1
}
]
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
policy: 'Manual',
submission_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
tasks: [
{
name: '<string>',
settings: {
ansi_enabled: true,
case_sensitive: true,
current_catalog: '<string>',
namespace: ['<string>'],
time_zone: '<string>'
},
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>',
profile: '<string>',
provisioner: '<string>',
worker_scope: 'Task',
xray: true,
control: {
retry: {
max_attempts: 1,
backoff: 'fixed',
initial_delay_seconds: 1,
jitter_percent: 1,
max_delay_seconds: 1,
python_replay_safe: true
},
sensor: {
condition: {kind: 'object_exists', url: '<string>'},
timeout_seconds: 1,
poll_interval_seconds: 1
}
},
incremental_source: {
branch: '<string>',
table: {
catalog_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
name: '<string>',
namespace: ['<string>']
}
},
python: '<string>',
python_mode: 'Batch',
spark_plan: '<string>',
sql: '<string>'
}
],
dependencies: [{downstream: '<string>', upstream: '<string>', input_name: '<string>'}],
name: '<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_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: {},
workflow: {
data_windows: true,
notifications: [
{
channel: {kind: 'webhook', url: '<string>', secret: '<string>'},
events: ['run_started'],
name: '<string>',
max_attempts: 1
}
]
}
})
};
fetch('https://engine.example.com/api/v1/workloads/validate', 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/workloads/validate",
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([
'policy' => 'Manual',
'submission_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'tasks' => [
[
'name' => '<string>',
'settings' => [
'ansi_enabled' => true,
'case_sensitive' => true,
'current_catalog' => '<string>',
'namespace' => [
'<string>'
],
'time_zone' => '<string>'
],
'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>',
'profile' => '<string>',
'provisioner' => '<string>',
'worker_scope' => 'Task',
'xray' => true,
'control' => [
'retry' => [
'max_attempts' => 1,
'backoff' => 'fixed',
'initial_delay_seconds' => 1,
'jitter_percent' => 1,
'max_delay_seconds' => 1,
'python_replay_safe' => true
],
'sensor' => [
'condition' => [
'kind' => 'object_exists',
'url' => '<string>'
],
'timeout_seconds' => 1,
'poll_interval_seconds' => 1
]
],
'incremental_source' => [
'branch' => '<string>',
'table' => [
'catalog_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'name' => '<string>',
'namespace' => [
'<string>'
]
]
],
'python' => '<string>',
'python_mode' => 'Batch',
'spark_plan' => '<string>',
'sql' => '<string>'
]
],
'dependencies' => [
[
'downstream' => '<string>',
'upstream' => '<string>',
'input_name' => '<string>'
]
],
'name' => '<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_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' => [
],
'workflow' => [
'data_windows' => true,
'notifications' => [
[
'channel' => [
'kind' => 'webhook',
'url' => '<string>',
'secret' => '<string>'
],
'events' => [
'run_started'
],
'name' => '<string>',
'max_attempts' => 1
]
]
]
]),
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/workloads/validate"
payload := strings.NewReader("{\n \"policy\": \"Manual\",\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tasks\": [\n {\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 \"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 \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"worker_scope\": \"Task\",\n \"xray\": true,\n \"control\": {\n \"retry\": {\n \"max_attempts\": 1,\n \"backoff\": \"fixed\",\n \"initial_delay_seconds\": 1,\n \"jitter_percent\": 1,\n \"max_delay_seconds\": 1,\n \"python_replay_safe\": true\n },\n \"sensor\": {\n \"condition\": {\n \"kind\": \"object_exists\",\n \"url\": \"<string>\"\n },\n \"timeout_seconds\": 1,\n \"poll_interval_seconds\": 1\n }\n },\n \"incremental_source\": {\n \"branch\": \"<string>\",\n \"table\": {\n \"catalog_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ]\n }\n },\n \"python\": \"<string>\",\n \"python_mode\": \"Batch\",\n \"spark_plan\": \"<string>\",\n \"sql\": \"<string>\"\n }\n ],\n \"dependencies\": [\n {\n \"downstream\": \"<string>\",\n \"upstream\": \"<string>\",\n \"input_name\": \"<string>\"\n }\n ],\n \"name\": \"<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_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 \"workflow\": {\n \"data_windows\": true,\n \"notifications\": [\n {\n \"channel\": {\n \"kind\": \"webhook\",\n \"url\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"events\": [\n \"run_started\"\n ],\n \"name\": \"<string>\",\n \"max_attempts\": 1\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://engine.example.com/api/v1/workloads/validate")
.header("Content-Type", "application/json")
.body("{\n \"policy\": \"Manual\",\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tasks\": [\n {\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 \"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 \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"worker_scope\": \"Task\",\n \"xray\": true,\n \"control\": {\n \"retry\": {\n \"max_attempts\": 1,\n \"backoff\": \"fixed\",\n \"initial_delay_seconds\": 1,\n \"jitter_percent\": 1,\n \"max_delay_seconds\": 1,\n \"python_replay_safe\": true\n },\n \"sensor\": {\n \"condition\": {\n \"kind\": \"object_exists\",\n \"url\": \"<string>\"\n },\n \"timeout_seconds\": 1,\n \"poll_interval_seconds\": 1\n }\n },\n \"incremental_source\": {\n \"branch\": \"<string>\",\n \"table\": {\n \"catalog_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ]\n }\n },\n \"python\": \"<string>\",\n \"python_mode\": \"Batch\",\n \"spark_plan\": \"<string>\",\n \"sql\": \"<string>\"\n }\n ],\n \"dependencies\": [\n {\n \"downstream\": \"<string>\",\n \"upstream\": \"<string>\",\n \"input_name\": \"<string>\"\n }\n ],\n \"name\": \"<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_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 \"workflow\": {\n \"data_windows\": true,\n \"notifications\": [\n {\n \"channel\": {\n \"kind\": \"webhook\",\n \"url\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"events\": [\n \"run_started\"\n ],\n \"name\": \"<string>\",\n \"max_attempts\": 1\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://engine.example.com/api/v1/workloads/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"policy\": \"Manual\",\n \"submission_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tasks\": [\n {\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 \"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 \"profile\": \"<string>\",\n \"provisioner\": \"<string>\",\n \"worker_scope\": \"Task\",\n \"xray\": true,\n \"control\": {\n \"retry\": {\n \"max_attempts\": 1,\n \"backoff\": \"fixed\",\n \"initial_delay_seconds\": 1,\n \"jitter_percent\": 1,\n \"max_delay_seconds\": 1,\n \"python_replay_safe\": true\n },\n \"sensor\": {\n \"condition\": {\n \"kind\": \"object_exists\",\n \"url\": \"<string>\"\n },\n \"timeout_seconds\": 1,\n \"poll_interval_seconds\": 1\n }\n },\n \"incremental_source\": {\n \"branch\": \"<string>\",\n \"table\": {\n \"catalog_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"name\": \"<string>\",\n \"namespace\": [\n \"<string>\"\n ]\n }\n },\n \"python\": \"<string>\",\n \"python_mode\": \"Batch\",\n \"spark_plan\": \"<string>\",\n \"sql\": \"<string>\"\n }\n ],\n \"dependencies\": [\n {\n \"downstream\": \"<string>\",\n \"upstream\": \"<string>\",\n \"input_name\": \"<string>\"\n }\n ],\n \"name\": \"<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_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 \"workflow\": {\n \"data_windows\": true,\n \"notifications\": [\n {\n \"channel\": {\n \"kind\": \"webhook\",\n \"url\": \"<string>\",\n \"secret\": \"<string>\"\n },\n \"events\": [\n \"run_started\"\n ],\n \"name\": \"<string>\",\n \"max_attempts\": 1\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"task_count": 1,
"valid": true,
"validation": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "Check the request fields"
}
}Reference
Related guidance
Addresses and access · Request identity · Errors and recovery · Pagination and resultsBody
application/json
Last modified on November 23, 2026