curl --request POST \
--url https://api.eddy.engineer/v1/power.sheets \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"result_keys": [
"<string>"
],
"titles": {
"checked_by": "<string>",
"client": "<string>",
"date": "<string>",
"drawn_by": "<string>",
"project": "<string>",
"revision": "<string>"
}
}
'import requests
url = "https://api.eddy.engineer/v1/power.sheets"
payload = {
"result_keys": ["<string>"],
"titles": {
"checked_by": "<string>",
"client": "<string>",
"date": "<string>",
"drawn_by": "<string>",
"project": "<string>",
"revision": "<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({
result_keys: ['<string>'],
titles: {
checked_by: '<string>',
client: '<string>',
date: '<string>',
drawn_by: '<string>',
project: '<string>',
revision: '<string>'
}
})
};
fetch('https://api.eddy.engineer/v1/power.sheets', 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.sheets",
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([
'result_keys' => [
'<string>'
],
'titles' => [
'checked_by' => '<string>',
'client' => '<string>',
'date' => '<string>',
'drawn_by' => '<string>',
'project' => '<string>',
'revision' => '<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.sheets"
payload := strings.NewReader("{\n \"result_keys\": [\n \"<string>\"\n ],\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\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.sheets")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"result_keys\": [\n \"<string>\"\n ],\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.sheets")
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 \"result_keys\": [\n \"<string>\"\n ],\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}A study set: the reports and sheets of several stored results of one network, with an index (`ss.power.studyset/1`)
Takes the result_keys of power studies of one network document (the same network.key in each study’s answer) and makes the set an engineer hands over: the single-line diagram of the network; then for each result, in the order given, its report as HTML, PDF and document, and its sheets (as power_report makes them: diagrams with results, time-current sheets, label sheets), numbered through the set; and an index page that lists every study with its report and sheets and every file with the BLAKE3 hash of its bytes. Files are named in order (01-loadflow-report.html, E-02-single-line-diagram-load-flow.svg, index.html), so the index’s links work beside them in a folder: format: zip answers exactly that folder with the manifest. What cannot be made is a note in the answer and on the index, never a file left out in silence (a network of more than 400 buses has no diagram; a coordination study that graded no pair has no time-current sheet). Deterministic: the same results and titles give the same set, and verify_result on the set’s key makes it again. Refused by name: POWER_REQUEST (400: the body, an unknown member, a key that is not b3: and 64 hex digits, titles that do not read or cannot be printed, a format that is not one of the route’s), POWER_RESULT_NOT_FOUND (404: no power study result under that key), POWER_NETWORK_NOT_FOUND (404: the network the result was run on is no longer stored), POWER_LIBRARY_NOT_FOUND (404) and POWER_VALUE_TABLE (422): a device library or value table a coordination or plot study stood on is no longer stored, POWER_REPORT_INVALID (422: the key names a report or a set and not a study’s result; results of different networks in one set; a result given twice).
curl --request POST \
--url https://api.eddy.engineer/v1/power.sheets \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"result_keys": [
"<string>"
],
"titles": {
"checked_by": "<string>",
"client": "<string>",
"date": "<string>",
"drawn_by": "<string>",
"project": "<string>",
"revision": "<string>"
}
}
'import requests
url = "https://api.eddy.engineer/v1/power.sheets"
payload = {
"result_keys": ["<string>"],
"titles": {
"checked_by": "<string>",
"client": "<string>",
"date": "<string>",
"drawn_by": "<string>",
"project": "<string>",
"revision": "<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({
result_keys: ['<string>'],
titles: {
checked_by: '<string>',
client: '<string>',
date: '<string>',
drawn_by: '<string>',
project: '<string>',
revision: '<string>'
}
})
};
fetch('https://api.eddy.engineer/v1/power.sheets', 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.sheets",
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([
'result_keys' => [
'<string>'
],
'titles' => [
'checked_by' => '<string>',
'client' => '<string>',
'date' => '<string>',
'drawn_by' => '<string>',
'project' => '<string>',
'revision' => '<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.sheets"
payload := strings.NewReader("{\n \"result_keys\": [\n \"<string>\"\n ],\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\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.sheets")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"result_keys\": [\n \"<string>\"\n ],\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.sheets")
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 \"result_keys\": [\n \"<string>\"\n ],\n \"titles\": {\n \"checked_by\": \"<string>\",\n \"client\": \"<string>\",\n \"date\": \"<string>\",\n \"drawn_by\": \"<string>\",\n \"project\": \"<string>\",\n \"revision\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
kind (set), schema (ss.power.studyset/1), title, result_key (BLAKE3 of the manifest's canonical bytes), blob_uri, report_uri, request_key, network, studies, titles, files: each file with name, title, kind (report_html, report_pdf, report the document, diagram, tcc, labels, and index in a set), media_type, key and blob_uri (read it with get_blob), bytes, and for a sheet its number sheet, notes, and document: the manifest (studies with each report's hash and file names, files by name and hash, notes)
The response is of type object.