curl --request GET \
--url https://api.ionworks.com/optimization_templatesimport requests
url = "https://api.ionworks.com/optimization_templates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/optimization_templates', 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/optimization_templates",
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/optimization_templates"
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/optimization_templates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/optimization_templates")
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[
{
"name": "<string>",
"id": "<string>",
"organization_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"initial_form_data": {},
"project_id": "<string>",
"access_level": "project",
"created_by": "<string>"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}List Optimization Templates
List all optimization templates accessible from the given project.
Returns the project’s own templates combined with system-level templates.
Parameters
project_id : str
The owner project whose templates should be retrieved.
q : str | None, optional
Free-text search on template name plus prefix full-text match, matching
the global search. Pushed into each source query (project + system) as a
SQL filter before the in-memory merge, rather than a Python substring.
created_at_gt, created_at_lt, updated_at_gt, updated_at_lt : str | None, optional
ISO datetime strings for date-range (between) filtering on the
created_at / updated_at columns.
Returns
list[OptimizationTemplate] Owned templates followed by system templates.
curl --request GET \
--url https://api.ionworks.com/optimization_templatesimport requests
url = "https://api.ionworks.com/optimization_templates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/optimization_templates', 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/optimization_templates",
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/optimization_templates"
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/optimization_templates")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/optimization_templates")
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[
{
"name": "<string>",
"id": "<string>",
"organization_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"initial_form_data": {},
"project_id": "<string>",
"access_level": "project",
"created_by": "<string>"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
Free-text search on template name plus prefix full-text match, matching the global search.
Response
Successful Response
The name of the optimization template.
The unique identifier for the template.
The ID of the organization this template belongs to.
Timestamp of when the template was created.
Timestamp of when the template was last updated.
An optional description for the template.
Initial form data values.
The ID of the owner project (None for system templates).
Template scope: 'system' for built-in, 'project' for user-created.
User ID of the creator.
Was this page helpful?