curl --request POST \
--url https://api.eddy.engineer/v1/power.planning.report \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"criteria": {},
"invented": "<string>",
"limits": {},
"name": "<string>",
"networks": [
{}
],
"results": [
"<string>"
],
"routes": [
{}
],
"titles": {}
}
'import requests
url = "https://api.eddy.engineer/v1/power.planning.report"
payload = {
"async": True,
"criteria": {},
"invented": "<string>",
"limits": {},
"name": "<string>",
"networks": [{}],
"results": ["<string>"],
"routes": [{}],
"titles": {}
}
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({
async: true,
criteria: {},
invented: '<string>',
limits: {},
name: '<string>',
networks: [{}],
results: ['<string>'],
routes: [{}],
titles: {}
})
};
fetch('https://api.eddy.engineer/v1/power.planning.report', 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.eddy.engineer/v1/power.planning.report",
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([
'async' => true,
'criteria' => [
],
'invented' => '<string>',
'limits' => [
],
'name' => '<string>',
'networks' => [
[
]
],
'results' => [
'<string>'
],
'routes' => [
[
]
],
'titles' => [
]
]),
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://api.eddy.engineer/v1/power.planning.report"
payload := strings.NewReader("{\n \"async\": true,\n \"criteria\": {},\n \"invented\": \"<string>\",\n \"limits\": {},\n \"name\": \"<string>\",\n \"networks\": [\n {}\n ],\n \"results\": [\n \"<string>\"\n ],\n \"routes\": [\n {}\n ],\n \"titles\": {}\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://api.eddy.engineer/v1/power.planning.report")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"criteria\": {},\n \"invented\": \"<string>\",\n \"limits\": {},\n \"name\": \"<string>\",\n \"networks\": [\n {}\n ],\n \"results\": [\n \"<string>\"\n ],\n \"routes\": [\n {}\n ],\n \"titles\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.planning.report")
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 \"async\": true,\n \"criteria\": {},\n \"invented\": \"<string>\",\n \"limits\": {},\n \"name\": \"<string>\",\n \"networks\": [\n {}\n ],\n \"results\": [\n \"<string>\"\n ],\n \"routes\": [\n {}\n ],\n \"titles\": {}\n}"
response = http.request(request)
puts response.read_body{}{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Planning study set: TP19's printable set (contingency reports, TAPR-style constraint table, OPF, transfer and expansion sheets, route and site options) from stored results or studies run here (`ss.power.planning_studyset/1`, and a zip)
curl --request POST \
--url https://api.eddy.engineer/v1/power.planning.report \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"async": true,
"criteria": {},
"invented": "<string>",
"limits": {},
"name": "<string>",
"networks": [
{}
],
"results": [
"<string>"
],
"routes": [
{}
],
"titles": {}
}
'import requests
url = "https://api.eddy.engineer/v1/power.planning.report"
payload = {
"async": True,
"criteria": {},
"invented": "<string>",
"limits": {},
"name": "<string>",
"networks": [{}],
"results": ["<string>"],
"routes": [{}],
"titles": {}
}
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({
async: true,
criteria: {},
invented: '<string>',
limits: {},
name: '<string>',
networks: [{}],
results: ['<string>'],
routes: [{}],
titles: {}
})
};
fetch('https://api.eddy.engineer/v1/power.planning.report', 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.eddy.engineer/v1/power.planning.report",
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([
'async' => true,
'criteria' => [
],
'invented' => '<string>',
'limits' => [
],
'name' => '<string>',
'networks' => [
[
]
],
'results' => [
'<string>'
],
'routes' => [
[
]
],
'titles' => [
]
]),
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://api.eddy.engineer/v1/power.planning.report"
payload := strings.NewReader("{\n \"async\": true,\n \"criteria\": {},\n \"invented\": \"<string>\",\n \"limits\": {},\n \"name\": \"<string>\",\n \"networks\": [\n {}\n ],\n \"results\": [\n \"<string>\"\n ],\n \"routes\": [\n {}\n ],\n \"titles\": {}\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://api.eddy.engineer/v1/power.planning.report")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"async\": true,\n \"criteria\": {},\n \"invented\": \"<string>\",\n \"limits\": {},\n \"name\": \"<string>\",\n \"networks\": [\n {}\n ],\n \"results\": [\n \"<string>\"\n ],\n \"routes\": [\n {}\n ],\n \"titles\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.planning.report")
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 \"async\": true,\n \"criteria\": {},\n \"invented\": \"<string>\",\n \"limits\": {},\n \"name\": \"<string>\",\n \"networks\": [\n {}\n ],\n \"results\": [\n \"<string>\"\n ],\n \"routes\": [\n {}\n ],\n \"titles\": {}\n}"
response = http.request(request)
puts response.read_body{}{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
true: make the set as a job and answer 202 with job_id, poll and events; the finished job's result is this route's body without the manifest (read result_key's blob). false: always inline. Left out: inline up to the studies' summed estimate of 5e6 (SS_POWER_PLANNING_SYNC_WORK), a job above
The results laid out, in order (at most 32): each a result key (b3:<hex>) of a power_contingency, power_nk, power_opf, power_opf_ac, power_transfer, power_expansion or power_site study, {key, title} (title names a site option), or a study run here {study (power.opf, opf, ...), title, and that route's own members (network | network_key | project, case, contingencies, settings, start_key, ...)}
- string
- object
Route options (TP14; at most 8): {title, from_label, to_label, route_key (a spatial_cost_route answer's key), corridor_key (a spatial.cost.corridor answer's key), polygons_key (its polygons.key), exposure_key (a spatial.route.exposure answer's key for the least-cost route)}; each read back and its key checked; the route's own cost raster is shaded on the map
Response
study, schema (ss.power.planning_studyset/1), result_key (BLAKE3 of the manifest's canonical bytes, TP19's own content_hash; blob_uri reads it, report_uri is its certificate, which verify_result runs again: every study run again, the set made again), request_key, documents {results (keys, in order), networks [{key, role, name}], routes}, run_here (each study this request ran: its study, result_key, summary, documents and what it wrote back), titles, zip {key, uri, name, bytes, media_type} (every file and manifest.json, stored, fixed dates), summary {study, invented, sheets, files, constraints, sheet_list [{number, title}], notes (what is not in the set, TP15's slot always), screening}, result_bytes, elapsed_ms, work, result_inline, result (the manifest: criteria, documents, sheets, the constraint table, every file with its hash, notes)
The response is of type object.