Get Pipeline Elements
curl --request GET \
--url https://api.ionworks.com/pipelines/{pipeline_id}/elementsimport requests
url = "https://api.ionworks.com/pipelines/{pipeline_id}/elements"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/pipelines/{pipeline_id}/elements', 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/pipelines/{pipeline_id}/elements",
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/pipelines/{pipeline_id}/elements"
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/pipelines/{pipeline_id}/elements")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/pipelines/{pipeline_id}/elements")
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[
{
"id": "<string>",
"pipeline_id": "<string>",
"name": "<string>",
"element_order": 123,
"element_type": "Direct Entry",
"job_config": {},
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"organization_id": "<string>",
"job_id": "<string>",
"result": {},
"error": "<string>",
"error_code": "CONFIGURATION_ERROR",
"error_detail": {},
"job_status": "<string>"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Pipeline Elements
Get all elements for a pipeline (lightweight).
Heavy job_config keys (e.g. objectives) are projected out for performance. GET /elements/ returns the same lightweight shape; the full job_config is stored separately and fetched from storage when a detail view needs it.
Get Pipeline Elements
curl --request GET \
--url https://api.ionworks.com/pipelines/{pipeline_id}/elementsimport requests
url = "https://api.ionworks.com/pipelines/{pipeline_id}/elements"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/pipelines/{pipeline_id}/elements', 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/pipelines/{pipeline_id}/elements",
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/pipelines/{pipeline_id}/elements"
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/pipelines/{pipeline_id}/elements")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/pipelines/{pipeline_id}/elements")
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[
{
"id": "<string>",
"pipeline_id": "<string>",
"name": "<string>",
"element_order": 123,
"element_type": "Direct Entry",
"job_config": {},
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"organization_id": "<string>",
"job_id": "<string>",
"result": {},
"error": "<string>",
"error_code": "CONFIGURATION_ERROR",
"error_detail": {},
"job_status": "<string>"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Response
Successful Response
Order of execution within the pipeline (1-based)
Type of job for this step
Available options:
Direct Entry, Data Fit, Array Data Fit, Calculation, Validation Configuration parameters for the job
Available options:
pending, running, completed, failed, skipped, canceled Organization this pipeline element belongs to.
Machine-readable error codes for jobs.
Available options:
CONFIGURATION_ERROR, MODEL_ERROR, SOLVER_ERROR, EXECUTION_TIMEOUT, SUBMISSION_FAILED, INTERNAL_ERROR Job status via job_id (from jobs.status).
Was this page helpful?