重新运行工作流
curl --request POST \
--url https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.post("https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun")
.header("X-API-Key", "<api-key>")
.asString();const url = 'https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun';
const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}using RestSharp;
var options = new RestClientOptions("https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-API-Key", "<api-key>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_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_HTTPHEADER => [
"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;
}{
"code": "success",
"message": "",
"data": {
"run_id": "run_xyz789",
"status": "succeeded",
"output": {
"result": "采购单分析完成"
},
"error": null,
"started_at": "2026-04-30T10:00:00Z",
"ended_at": "2026-04-30T10:00:15Z"
}
}{
"code": "<string>",
"message": "<string>",
"tips": "<string>"
}工作流
重新运行工作流
根据历史运行记录重新触发一次工作流运行。接口会复用原运行的应用、版本和输入,并创建新的异步运行任务。
POST
/
open
/
agentic_engine
/
laiye
/
v1
/
app
/
run
/
{run_id}
/
rerun
重新运行工作流
curl --request POST \
--url https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.post("https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun")
.header("X-API-Key", "<api-key>")
.asString();const url = 'https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun';
const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}using RestSharp;
var options = new RestClientOptions("https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_id}/rerun");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-API-Key", "<api-key>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://adp.laiye.com/open/agentic_engine/laiye/v1/app/run/{run_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_HTTPHEADER => [
"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;
}{
"code": "success",
"message": "",
"data": {
"run_id": "run_xyz789",
"status": "succeeded",
"output": {
"result": "采购单分析完成"
},
"error": null,
"started_at": "2026-04-30T10:00:00Z",
"ended_at": "2026-04-30T10:00:15Z"
}
}{
"code": "<string>",
"message": "<string>",
"tips": "<string>"
}⌘I
