curl --request GET \
--url https://api.ionworks.com/optimizations/{id}/runsimport requests
url = "https://api.ionworks.com/optimizations/{id}/runs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/optimizations/{id}/runs', 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://api.ionworks.com/optimizations/{id}/runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ionworks.com/optimizations/{id}/runs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ionworks.com/optimizations/{id}/runs")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/optimizations/{id}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"run_id": "<string>",
"index": 123,
"status": "queued",
"element_key": "<string>",
"start_id": "<string>",
"intermediate_results": [
{}
]
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}List Optimization Runs
List the multistart runs of an optimization in one call.
Each run carries status and convergence history (read server-side), so the frontend renders per-run progress without touching jobs.
curl --request GET \
--url https://api.ionworks.com/optimizations/{id}/runsimport requests
url = "https://api.ionworks.com/optimizations/{id}/runs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/optimizations/{id}/runs', 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://api.ionworks.com/optimizations/{id}/runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ionworks.com/optimizations/{id}/runs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ionworks.com/optimizations/{id}/runs")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/optimizations/{id}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"run_id": "<string>",
"index": 123,
"status": "queued",
"element_key": "<string>",
"start_id": "<string>",
"intermediate_results": [
{}
]
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Response
Successful Response
Opaque identifier for this optimization run.
Zero-based position of the run, in creation order.
Lifecycle status of the run.
queued, running, succeeded, failed, canceled For an array fit, the independent-variable value of the element this run belongs to, e.g. '25.0'. Null for a single fit and for runs recorded before the field existed.
The run's multistart within its fit, from '0'. An array fit repeats it in every element, so pair it with element_key. Null for runs recorded before the field existed.
Per-iteration convergence history for the run; its length is the current iteration count. Null until the run produces history.
Was this page helpful?