Rerun an execution from a specific node
curl --request POST \
--url https://inference.studio.lyzr.ai/api/executions/{id}/rerun \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"from_node": "summarize_results"
}
'import requests
url = "https://inference.studio.lyzr.ai/api/executions/{id}/rerun"
payload = { "from_node": "summarize_results" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({from_node: 'summarize_results'})
};
fetch('https://inference.studio.lyzr.ai/api/executions/{id}/rerun', 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://inference.studio.lyzr.ai/api/executions/{id}/rerun",
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([
'from_node' => 'summarize_results'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://inference.studio.lyzr.ai/api/executions/{id}/rerun"
payload := strings.NewReader("{\n \"from_node\": \"summarize_results\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://inference.studio.lyzr.ai/api/executions/{id}/rerun")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from_node\": \"summarize_results\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://inference.studio.lyzr.ai/api/executions/{id}/rerun")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from_node\": \"summarize_results\"\n}"
response = http.request(request)
puts response.read_body{
"execution_id": "exec_5b7d3e",
"status": "running",
"outputs": {},
"node_outputs": {},
"errors": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Executions
Rerun Execution
Creates a new execution that starts at from_node, reusing the prior execution’s upstream node outputs. The new execution is linked to the original via parent_execution_id.
POST
/
executions
/
{id}
/
rerun
Rerun an execution from a specific node
curl --request POST \
--url https://inference.studio.lyzr.ai/api/executions/{id}/rerun \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"from_node": "summarize_results"
}
'import requests
url = "https://inference.studio.lyzr.ai/api/executions/{id}/rerun"
payload = { "from_node": "summarize_results" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({from_node: 'summarize_results'})
};
fetch('https://inference.studio.lyzr.ai/api/executions/{id}/rerun', 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://inference.studio.lyzr.ai/api/executions/{id}/rerun",
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([
'from_node' => 'summarize_results'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://inference.studio.lyzr.ai/api/executions/{id}/rerun"
payload := strings.NewReader("{\n \"from_node\": \"summarize_results\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://inference.studio.lyzr.ai/api/executions/{id}/rerun")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from_node\": \"summarize_results\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://inference.studio.lyzr.ai/api/executions/{id}/rerun")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from_node\": \"summarize_results\"\n}"
response = http.request(request)
puts response.read_body{
"execution_id": "exec_5b7d3e",
"status": "running",
"outputs": {},
"node_outputs": {},
"errors": [
"<string>"
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Tenant API key. Required on every endpoint.
Path Parameters
Prior execution ID
Body
application/json
Rerun start node
Node name to restart from. Upstream node outputs are reused from the prior execution.
Example:
"summarize_results"
⌘I