Skip to main content
POST
A time-current plot of chosen devices, as data and as an SVG (`ss.power.tcc/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
request
object
required

The plot: devices (ids, in drawing order; required), title, element (phase, the default | earth), reference_voltage_v (the first device's when left out), axes {current_min_a, current_max_a, time_min_s, time_max_s}, samples_per_decade (4 to 200, 24), markers [{kind: fault | load, label, current_a, voltage_v} | {kind: cable, label, k, area_mm2, voltage_v}]

async
boolean

true: run as a job and answer 202 with job_id, poll and events; the finished job's result is this route's body without the inline result (read result_key's blob). false: always inline. Left out: inline up to 2,000 buses, a job above

case
string

A short-circuit study case, by id: the fault currents are taken in its state (its switches, sources and value tables). Left out: the document as it stands

fault_bus
string

A bus whose fault currents (from the fault study) are added as markers

format
enum<string>

svg: answer the drawing (image/svg+xml) with x-eddy-key and x-eddy-result-key; json (the default): the envelope

Available options:
json,
svg
libraries
object[]

Device libraries (ss.power.devices/1), inline: the libraries the network's devices name in curve.library

library_keys
string[]

Keys of stored device libraries (power_devices answers key). With libraries, at most 16

network
object

The network document (ss.power.network/1), inline: name, frequency_hz, base_va, buses, sources, branches, shunts, loads, motors, devices, cases, extensions. SI units. Give exactly one of network, network_key, project

network_key
string

The key (b3:<hex>) of a stored network: what power_network, power_import and power_edit answer as key

on
string

The date the tables must be in force on, YYYY-MM-DD; today when left out

project
string

The id of a project whose document is a network (app: "power"): its live head where it has one, else its last save

state
string

The state the tables must be in force for (such as NSW), where a table is keyed by state

tables
string[]

Ids of adopted value tables (ss.mep.values/1, mep_values_import then a person's mep_values_adopt). The study case's own value_tables are added. At most 8

variant
string

A variant of project, by slug

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: the plot: axes, curves (each device's min and max as [A, s] points), markers, findings

The response is of type object.