Preview workflow change
curl --request POST \
--url https://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": 1,
"workflow": {
"nodes": [
{
"id": "1f8a5887-d8ce-023a-e20f-a50322ebeeec",
"name": "Daily",
"type": "n8n-nodes-base.scheduleTrigger",
"type_version": 1.2,
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 7
}
]
}
},
"disabled": false,
"on_error": "stopWorkflow",
"always_output_data": false,
"execute_once": false
},
{
"id": "f78155ac-22ae-555d-0419-9612ed0fd8bd",
"name": "Products",
"type": "n8n-nodes-base.httpRequest",
"type_version": 4.2,
"parameters": {
"url": "https://demo.myshopify.com/admin/api/2024-10/products.json"
},
"disabled": false,
"on_error": "continueRegularOutput",
"always_output_data": false,
"execute_once": false
}
],
"connections": {
"Daily": {
"main": [
[
{
"node": "Products",
"type": "main",
"index": 0
}
]
]
},
"Products": {
"main": [
[
{
"node": "Summary",
"type": "main",
"index": 0
}
]
]
}
}
}
}
'import requests
url = "https://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview"
payload = {
"version": 1,
"workflow": {
"nodes": [
{
"id": "1f8a5887-d8ce-023a-e20f-a50322ebeeec",
"name": "Daily",
"type": "n8n-nodes-base.scheduleTrigger",
"type_version": 1.2,
"parameters": { "rule": { "interval": [{ "triggerAtHour": 7 }] } },
"disabled": False,
"on_error": "stopWorkflow",
"always_output_data": False,
"execute_once": False
},
{
"id": "f78155ac-22ae-555d-0419-9612ed0fd8bd",
"name": "Products",
"type": "n8n-nodes-base.httpRequest",
"type_version": 4.2,
"parameters": { "url": "https://demo.myshopify.com/admin/api/2024-10/products.json" },
"disabled": False,
"on_error": "continueRegularOutput",
"always_output_data": False,
"execute_once": False
}
],
"connections": {
"Daily": { "main": [[
{
"node": "Products",
"type": "main",
"index": 0
}
]] },
"Products": { "main": [[
{
"node": "Summary",
"type": "main",
"index": 0
}
]] }
}
}
}
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({
version: 1,
workflow: {
nodes: [
{
id: '1f8a5887-d8ce-023a-e20f-a50322ebeeec',
name: 'Daily',
type: 'n8n-nodes-base.scheduleTrigger',
type_version: 1.2,
parameters: {rule: {interval: [{triggerAtHour: 7}]}},
disabled: false,
on_error: 'stopWorkflow',
always_output_data: false,
execute_once: false
},
{
id: 'f78155ac-22ae-555d-0419-9612ed0fd8bd',
name: 'Products',
type: 'n8n-nodes-base.httpRequest',
type_version: 4.2,
parameters: {url: 'https://demo.myshopify.com/admin/api/2024-10/products.json'},
disabled: false,
on_error: 'continueRegularOutput',
always_output_data: false,
execute_once: false
}
],
connections: {
Daily: {main: [[{node: 'Products', type: 'main', index: 0}]]},
Products: {main: [[{node: 'Summary', type: 'main', index: 0}]]}
}
}
})
};
fetch('https://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview', 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://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview",
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([
'version' => 1,
'workflow' => [
'nodes' => [
[
'id' => '1f8a5887-d8ce-023a-e20f-a50322ebeeec',
'name' => 'Daily',
'type' => 'n8n-nodes-base.scheduleTrigger',
'type_version' => 1.2,
'parameters' => [
'rule' => [
'interval' => [
[
'triggerAtHour' => 7
]
]
]
],
'disabled' => false,
'on_error' => 'stopWorkflow',
'always_output_data' => false,
'execute_once' => false
],
[
'id' => 'f78155ac-22ae-555d-0419-9612ed0fd8bd',
'name' => 'Products',
'type' => 'n8n-nodes-base.httpRequest',
'type_version' => 4.2,
'parameters' => [
'url' => 'https://demo.myshopify.com/admin/api/2024-10/products.json'
],
'disabled' => false,
'on_error' => 'continueRegularOutput',
'always_output_data' => false,
'execute_once' => false
]
],
'connections' => [
'Daily' => [
'main' => [
[
[
'node' => 'Products',
'type' => 'main',
'index' => 0
]
]
]
],
'Products' => [
'main' => [
[
[
'node' => 'Summary',
'type' => 'main',
'index' => 0
]
]
]
]
]
]
]),
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://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview"
payload := strings.NewReader("{\n \"version\": 1,\n \"workflow\": {\n \"nodes\": [\n {\n \"id\": \"1f8a5887-d8ce-023a-e20f-a50322ebeeec\",\n \"name\": \"Daily\",\n \"type\": \"n8n-nodes-base.scheduleTrigger\",\n \"type_version\": 1.2,\n \"parameters\": {\n \"rule\": {\n \"interval\": [\n {\n \"triggerAtHour\": 7\n }\n ]\n }\n },\n \"disabled\": false,\n \"on_error\": \"stopWorkflow\",\n \"always_output_data\": false,\n \"execute_once\": false\n },\n {\n \"id\": \"f78155ac-22ae-555d-0419-9612ed0fd8bd\",\n \"name\": \"Products\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"type_version\": 4.2,\n \"parameters\": {\n \"url\": \"https://demo.myshopify.com/admin/api/2024-10/products.json\"\n },\n \"disabled\": false,\n \"on_error\": \"continueRegularOutput\",\n \"always_output_data\": false,\n \"execute_once\": false\n }\n ],\n \"connections\": {\n \"Daily\": {\n \"main\": [\n [\n {\n \"node\": \"Products\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Products\": {\n \"main\": [\n [\n {\n \"node\": \"Summary\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n }\n }\n }\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://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"version\": 1,\n \"workflow\": {\n \"nodes\": [\n {\n \"id\": \"1f8a5887-d8ce-023a-e20f-a50322ebeeec\",\n \"name\": \"Daily\",\n \"type\": \"n8n-nodes-base.scheduleTrigger\",\n \"type_version\": 1.2,\n \"parameters\": {\n \"rule\": {\n \"interval\": [\n {\n \"triggerAtHour\": 7\n }\n ]\n }\n },\n \"disabled\": false,\n \"on_error\": \"stopWorkflow\",\n \"always_output_data\": false,\n \"execute_once\": false\n },\n {\n \"id\": \"f78155ac-22ae-555d-0419-9612ed0fd8bd\",\n \"name\": \"Products\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"type_version\": 4.2,\n \"parameters\": {\n \"url\": \"https://demo.myshopify.com/admin/api/2024-10/products.json\"\n },\n \"disabled\": false,\n \"on_error\": \"continueRegularOutput\",\n \"always_output_data\": false,\n \"execute_once\": false\n }\n ],\n \"connections\": {\n \"Daily\": {\n \"main\": [\n [\n {\n \"node\": \"Products\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Products\": {\n \"main\": [\n [\n {\n \"node\": \"Summary\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview")
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 \"version\": 1,\n \"workflow\": {\n \"nodes\": [\n {\n \"id\": \"1f8a5887-d8ce-023a-e20f-a50322ebeeec\",\n \"name\": \"Daily\",\n \"type\": \"n8n-nodes-base.scheduleTrigger\",\n \"type_version\": 1.2,\n \"parameters\": {\n \"rule\": {\n \"interval\": [\n {\n \"triggerAtHour\": 7\n }\n ]\n }\n },\n \"disabled\": false,\n \"on_error\": \"stopWorkflow\",\n \"always_output_data\": false,\n \"execute_once\": false\n },\n {\n \"id\": \"f78155ac-22ae-555d-0419-9612ed0fd8bd\",\n \"name\": \"Products\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"type_version\": 4.2,\n \"parameters\": {\n \"url\": \"https://demo.myshopify.com/admin/api/2024-10/products.json\"\n },\n \"disabled\": false,\n \"on_error\": \"continueRegularOutput\",\n \"always_output_data\": false,\n \"execute_once\": false\n }\n ],\n \"connections\": {\n \"Daily\": {\n \"main\": [\n [\n {\n \"node\": \"Products\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Products\": {\n \"main\": [\n [\n {\n \"node\": \"Summary\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"contract_version": 1,
"data": {
"preview": {
"version": 1,
"preview_hash": "f592e00c593bbbce1195c034ba7c8372ad39989ed440ce261d107766c28242b6",
"changes": [],
"unconfigured": [],
"plan_summary": {
"runs": 3,
"sends": 0,
"unsupported": 0
},
"notices": []
}
}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"success": false,
"contract_version": 2,
"code": "stale_version",
"message": "<string>",
"data": {
"automation": {
"id": "<string>",
"kind": "template",
"import_id": "<string>",
"version": 2,
"template_id": "<string>",
"template_version": 2,
"platform": "shopify",
"integration_id": 123,
"store_label": "<string>",
"name": "<string>",
"state": "draft",
"paused_by": "merchant",
"paused_reason": "<string>",
"inputs": {},
"schedule": {
"cadence": "manual",
"run_at": "<string>",
"day_of_week": 4,
"day_of_month": 16,
"date": "<string>",
"days": [
4
],
"week_of_month": 1
},
"timezone": "<string>",
"spread_minutes": 4,
"next_run_at": "2023-11-07T05:31:56Z",
"last_run_at": "2023-11-07T05:31:56Z",
"consecutive_failures": 1,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source": "n8n",
"bindings": {},
"plan_version": 2,
"readiness": {
"ready": true,
"missing": [
"klaviyo"
],
"unconfigured": [
{
"step": "<string>",
"kind": "store",
"target": {
"spreadsheet_id": "<string>",
"sheet": "<string>"
},
"why": "no_connection"
}
]
},
"connections": [
{
"integration_id": 2,
"kind": "klaviyo"
}
],
"send_mode": "ask",
"send_mode_allowed": true,
"trigger": {
"kind": "schedule"
},
"created_by": 123,
"created_via": "ui",
"api_client_id": "<string>"
}
}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}Preview workflow change
What a rewrite of a workflow automation’s steps would change, before you save it: the steps added, changed
and removed, and how the new version would run. Nothing is saved. To save it, send the same workflow with
the returned preview_hash to Update automation.
Needs the automations:read scope.
POST
/
v1
/
automations
/
{automationId}
/
workflow
/
preview
Preview workflow change
curl --request POST \
--url https://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"version": 1,
"workflow": {
"nodes": [
{
"id": "1f8a5887-d8ce-023a-e20f-a50322ebeeec",
"name": "Daily",
"type": "n8n-nodes-base.scheduleTrigger",
"type_version": 1.2,
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 7
}
]
}
},
"disabled": false,
"on_error": "stopWorkflow",
"always_output_data": false,
"execute_once": false
},
{
"id": "f78155ac-22ae-555d-0419-9612ed0fd8bd",
"name": "Products",
"type": "n8n-nodes-base.httpRequest",
"type_version": 4.2,
"parameters": {
"url": "https://demo.myshopify.com/admin/api/2024-10/products.json"
},
"disabled": false,
"on_error": "continueRegularOutput",
"always_output_data": false,
"execute_once": false
}
],
"connections": {
"Daily": {
"main": [
[
{
"node": "Products",
"type": "main",
"index": 0
}
]
]
},
"Products": {
"main": [
[
{
"node": "Summary",
"type": "main",
"index": 0
}
]
]
}
}
}
}
'import requests
url = "https://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview"
payload = {
"version": 1,
"workflow": {
"nodes": [
{
"id": "1f8a5887-d8ce-023a-e20f-a50322ebeeec",
"name": "Daily",
"type": "n8n-nodes-base.scheduleTrigger",
"type_version": 1.2,
"parameters": { "rule": { "interval": [{ "triggerAtHour": 7 }] } },
"disabled": False,
"on_error": "stopWorkflow",
"always_output_data": False,
"execute_once": False
},
{
"id": "f78155ac-22ae-555d-0419-9612ed0fd8bd",
"name": "Products",
"type": "n8n-nodes-base.httpRequest",
"type_version": 4.2,
"parameters": { "url": "https://demo.myshopify.com/admin/api/2024-10/products.json" },
"disabled": False,
"on_error": "continueRegularOutput",
"always_output_data": False,
"execute_once": False
}
],
"connections": {
"Daily": { "main": [[
{
"node": "Products",
"type": "main",
"index": 0
}
]] },
"Products": { "main": [[
{
"node": "Summary",
"type": "main",
"index": 0
}
]] }
}
}
}
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({
version: 1,
workflow: {
nodes: [
{
id: '1f8a5887-d8ce-023a-e20f-a50322ebeeec',
name: 'Daily',
type: 'n8n-nodes-base.scheduleTrigger',
type_version: 1.2,
parameters: {rule: {interval: [{triggerAtHour: 7}]}},
disabled: false,
on_error: 'stopWorkflow',
always_output_data: false,
execute_once: false
},
{
id: 'f78155ac-22ae-555d-0419-9612ed0fd8bd',
name: 'Products',
type: 'n8n-nodes-base.httpRequest',
type_version: 4.2,
parameters: {url: 'https://demo.myshopify.com/admin/api/2024-10/products.json'},
disabled: false,
on_error: 'continueRegularOutput',
always_output_data: false,
execute_once: false
}
],
connections: {
Daily: {main: [[{node: 'Products', type: 'main', index: 0}]]},
Products: {main: [[{node: 'Summary', type: 'main', index: 0}]]}
}
}
})
};
fetch('https://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview', 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://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview",
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([
'version' => 1,
'workflow' => [
'nodes' => [
[
'id' => '1f8a5887-d8ce-023a-e20f-a50322ebeeec',
'name' => 'Daily',
'type' => 'n8n-nodes-base.scheduleTrigger',
'type_version' => 1.2,
'parameters' => [
'rule' => [
'interval' => [
[
'triggerAtHour' => 7
]
]
]
],
'disabled' => false,
'on_error' => 'stopWorkflow',
'always_output_data' => false,
'execute_once' => false
],
[
'id' => 'f78155ac-22ae-555d-0419-9612ed0fd8bd',
'name' => 'Products',
'type' => 'n8n-nodes-base.httpRequest',
'type_version' => 4.2,
'parameters' => [
'url' => 'https://demo.myshopify.com/admin/api/2024-10/products.json'
],
'disabled' => false,
'on_error' => 'continueRegularOutput',
'always_output_data' => false,
'execute_once' => false
]
],
'connections' => [
'Daily' => [
'main' => [
[
[
'node' => 'Products',
'type' => 'main',
'index' => 0
]
]
]
],
'Products' => [
'main' => [
[
[
'node' => 'Summary',
'type' => 'main',
'index' => 0
]
]
]
]
]
]
]),
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://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview"
payload := strings.NewReader("{\n \"version\": 1,\n \"workflow\": {\n \"nodes\": [\n {\n \"id\": \"1f8a5887-d8ce-023a-e20f-a50322ebeeec\",\n \"name\": \"Daily\",\n \"type\": \"n8n-nodes-base.scheduleTrigger\",\n \"type_version\": 1.2,\n \"parameters\": {\n \"rule\": {\n \"interval\": [\n {\n \"triggerAtHour\": 7\n }\n ]\n }\n },\n \"disabled\": false,\n \"on_error\": \"stopWorkflow\",\n \"always_output_data\": false,\n \"execute_once\": false\n },\n {\n \"id\": \"f78155ac-22ae-555d-0419-9612ed0fd8bd\",\n \"name\": \"Products\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"type_version\": 4.2,\n \"parameters\": {\n \"url\": \"https://demo.myshopify.com/admin/api/2024-10/products.json\"\n },\n \"disabled\": false,\n \"on_error\": \"continueRegularOutput\",\n \"always_output_data\": false,\n \"execute_once\": false\n }\n ],\n \"connections\": {\n \"Daily\": {\n \"main\": [\n [\n {\n \"node\": \"Products\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Products\": {\n \"main\": [\n [\n {\n \"node\": \"Summary\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n }\n }\n }\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://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"version\": 1,\n \"workflow\": {\n \"nodes\": [\n {\n \"id\": \"1f8a5887-d8ce-023a-e20f-a50322ebeeec\",\n \"name\": \"Daily\",\n \"type\": \"n8n-nodes-base.scheduleTrigger\",\n \"type_version\": 1.2,\n \"parameters\": {\n \"rule\": {\n \"interval\": [\n {\n \"triggerAtHour\": 7\n }\n ]\n }\n },\n \"disabled\": false,\n \"on_error\": \"stopWorkflow\",\n \"always_output_data\": false,\n \"execute_once\": false\n },\n {\n \"id\": \"f78155ac-22ae-555d-0419-9612ed0fd8bd\",\n \"name\": \"Products\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"type_version\": 4.2,\n \"parameters\": {\n \"url\": \"https://demo.myshopify.com/admin/api/2024-10/products.json\"\n },\n \"disabled\": false,\n \"on_error\": \"continueRegularOutput\",\n \"always_output_data\": false,\n \"execute_once\": false\n }\n ],\n \"connections\": {\n \"Daily\": {\n \"main\": [\n [\n {\n \"node\": \"Products\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Products\": {\n \"main\": [\n [\n {\n \"node\": \"Summary\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://automations-api.vortexiq.ai/v1/automations/{automationId}/workflow/preview")
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 \"version\": 1,\n \"workflow\": {\n \"nodes\": [\n {\n \"id\": \"1f8a5887-d8ce-023a-e20f-a50322ebeeec\",\n \"name\": \"Daily\",\n \"type\": \"n8n-nodes-base.scheduleTrigger\",\n \"type_version\": 1.2,\n \"parameters\": {\n \"rule\": {\n \"interval\": [\n {\n \"triggerAtHour\": 7\n }\n ]\n }\n },\n \"disabled\": false,\n \"on_error\": \"stopWorkflow\",\n \"always_output_data\": false,\n \"execute_once\": false\n },\n {\n \"id\": \"f78155ac-22ae-555d-0419-9612ed0fd8bd\",\n \"name\": \"Products\",\n \"type\": \"n8n-nodes-base.httpRequest\",\n \"type_version\": 4.2,\n \"parameters\": {\n \"url\": \"https://demo.myshopify.com/admin/api/2024-10/products.json\"\n },\n \"disabled\": false,\n \"on_error\": \"continueRegularOutput\",\n \"always_output_data\": false,\n \"execute_once\": false\n }\n ],\n \"connections\": {\n \"Daily\": {\n \"main\": [\n [\n {\n \"node\": \"Products\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n },\n \"Products\": {\n \"main\": [\n [\n {\n \"node\": \"Summary\",\n \"type\": \"main\",\n \"index\": 0\n }\n ]\n ]\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"contract_version": 1,
"data": {
"preview": {
"version": 1,
"preview_hash": "f592e00c593bbbce1195c034ba7c8372ad39989ed440ce261d107766c28242b6",
"changes": [],
"unconfigured": [],
"plan_summary": {
"runs": 3,
"sends": 0,
"unsupported": 0
},
"notices": []
}
}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"success": false,
"contract_version": 2,
"code": "stale_version",
"message": "<string>",
"data": {
"automation": {
"id": "<string>",
"kind": "template",
"import_id": "<string>",
"version": 2,
"template_id": "<string>",
"template_version": 2,
"platform": "shopify",
"integration_id": 123,
"store_label": "<string>",
"name": "<string>",
"state": "draft",
"paused_by": "merchant",
"paused_reason": "<string>",
"inputs": {},
"schedule": {
"cadence": "manual",
"run_at": "<string>",
"day_of_week": 4,
"day_of_month": 16,
"date": "<string>",
"days": [
4
],
"week_of_month": 1
},
"timezone": "<string>",
"spread_minutes": 4,
"next_run_at": "2023-11-07T05:31:56Z",
"last_run_at": "2023-11-07T05:31:56Z",
"consecutive_failures": 1,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"source": "n8n",
"bindings": {},
"plan_version": 2,
"readiness": {
"ready": true,
"missing": [
"klaviyo"
],
"unconfigured": [
{
"step": "<string>",
"kind": "store",
"target": {
"spreadsheet_id": "<string>",
"sheet": "<string>"
},
"why": "no_connection"
}
]
},
"connections": [
{
"integration_id": 2,
"kind": "klaviyo"
}
],
"send_mode": "ask",
"send_mode_allowed": true,
"trigger": {
"kind": "schedule"
},
"created_by": 123,
"created_via": "ui",
"api_client_id": "<string>"
}
}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}{
"success": false,
"contract_version": 2,
"message": "<string>",
"code": "<string>",
"errors": {}
}Authorizations
bearerAuthapiCredential
A bearer token from Login, sent as Authorization: Bearer <token>. Valid for 60 minutes; it acts as the person named at login, within their organisation, and never approves. Rotating or disabling the organisation's API credential ends every token made with it on its next call. See Authentication.
Path Parameters
The automation's id. A public id (a ULID).
Pattern:
^[0-9A-HJKMNP-TV-Z]{26}$Body
application/json
Was this page helpful?
⌘I