curl --request POST \
--url https://api.eddy.engineer/v1/power.sizing \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"accept": true,
"async": true,
"network": {},
"network_key": "<string>",
"on": "<string>",
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": [
"<string>"
],
"variant": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/power.sizing"
payload = {
"accept": True,
"async": True,
"network": {},
"network_key": "<string>",
"on": "<string>",
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": ["<string>"],
"variant": "<string>"
}
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({
accept: true,
async: true,
network: {},
network_key: '<string>',
on: '<string>',
project: '<string>',
settings: {},
state: '<string>',
tables: ['<string>'],
variant: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/power.sizing', 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.sizing",
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([
'accept' => true,
'async' => true,
'network' => [
],
'network_key' => '<string>',
'on' => '<string>',
'project' => '<string>',
'settings' => [
],
'state' => '<string>',
'tables' => [
'<string>'
],
'variant' => '<string>'
]),
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.sizing"
payload := strings.NewReader("{\n \"accept\": true,\n \"async\": true,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\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.sizing")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accept\": true,\n \"async\": true,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.sizing")
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 \"accept\": true,\n \"async\": true,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\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>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Size cables, transformers and generators on the network's flows and faults (`ss.power.sizing/1`)
Reads the document’s sizing extension. Cables are selected by current capacity, voltage drop and adiabatic withstand, the governing check named, and the studies are run again until the selection settles; transformers are checked on loading, taps and fault level, generators against their capability; every load’s voltage is reported. Ratings, derating, adiabatic constants and limits come only from the handed value tables or entered values: a check with a missing table or entry is unevaluable, naming the key. accept: true also stores the network with the selected sections written in (parts.accepted_network). Always on the heavy lane. Refused by name: POWER_REQUEST (400: the body, a member the study does not take, not exactly one network source), POWER_SETTINGS (400: a setting that does not read, with the field), POWER_DOCUMENT_INVALID (400), POWER_NETWORK_NOT_FOUND (404), POWER_PROJECT_KIND (422), POWER_BUSY (429: the heavy lane is full; retry after Retry-After, or send async: true), POWER_VALUE_TABLE (422: a table that is named and is missing, not adopted, not in force or unreadable, each with MEP8’s code), POWER_SIZING_INVALID (422), POWER_SIZING_OVER_BUDGET (422), POWER_SIZING_UNAVAILABLE (501: a build without the building engine). The result is a design aid: a person reviews it before it is relied on.
curl --request POST \
--url https://api.eddy.engineer/v1/power.sizing \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"accept": true,
"async": true,
"network": {},
"network_key": "<string>",
"on": "<string>",
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": [
"<string>"
],
"variant": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/power.sizing"
payload = {
"accept": True,
"async": True,
"network": {},
"network_key": "<string>",
"on": "<string>",
"project": "<string>",
"settings": {},
"state": "<string>",
"tables": ["<string>"],
"variant": "<string>"
}
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({
accept: true,
async: true,
network: {},
network_key: '<string>',
on: '<string>',
project: '<string>',
settings: {},
state: '<string>',
tables: ['<string>'],
variant: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/power.sizing', 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.sizing",
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([
'accept' => true,
'async' => true,
'network' => [
],
'network_key' => '<string>',
'on' => '<string>',
'project' => '<string>',
'settings' => [
],
'state' => '<string>',
'tables' => [
'<string>'
],
'variant' => '<string>'
]),
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.sizing"
payload := strings.NewReader("{\n \"accept\": true,\n \"async\": true,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\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.sizing")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accept\": true,\n \"async\": true,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.sizing")
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 \"accept\": true,\n \"async\": true,\n \"network\": {},\n \"network_key\": \"<string>\",\n \"on\": \"<string>\",\n \"project\": \"<string>\",\n \"settings\": {},\n \"state\": \"<string>\",\n \"tables\": [\n \"<string>\"\n ],\n \"variant\": \"<string>\"\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>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
load_flow_cases (the study cases to size over; the document as it stands when empty), short_circuit_case, load_flow and short_circuit (those studies' settings), transformer_loading_limit_percent (100), generator_loading_limit_percent (100), voltage_band_pu ([low, high]), max_rounds (6), max_tap_confirmations (64)
Response
study, schema, result_key (BLAKE3 of the result's canonical bytes; blob_uri reads it, report_uri is its certificate, which verify_result runs again), request_key, network {key, name, counts}, case, tables (each table read, by id, item, revision and content key), libraries, upstream (keys of the results it stands on), parts, validation (the document's own findings: errors, warnings, findings), summary, result_inline, and result: cables, transformers, generators, loads, values (the tables a value was taken from), settled, rounds, counts, findings
The response is of type object.