Skip to main content
POST
Dynamic operating envelopes: each customer connection's export and import limit at every interval of a time-series run, every connection at its limit at once holding the network's limits (`ss.power.envelope/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
study
object
required

UD13's envelope study: run (UD3's time-series study: start, steps, step_s, scale, control, limits; the profiles' own step where it states none) and limits {v_min_pu, v_max_pu, loading_max_pct, reverse_flow_w} (each the study's input; none built in), and optionally connections [{id, loads, ders, max_w}] (every load in service where left out), allocation (equal | proportional), directions ([export, import]), max_w (equal: every connection's cap; 1,000 resolution steps), resolution_w (100 W on LV, 1 kW otherwise), sensitivity_step_w, power_factor (1), reactive (absorbing | producing), max_replays (12), raise_passes (3), compare {export_w, import_w} (a fixed limit per connection replayed beside), store_budget_bytes. Inverter settings come from tables, never inline

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), and it runs within the job's budget (SS_POWER_DIST_JOB_WORK, 2e9 conductor-solves) rather than the crate's inline one. false: always inline. Left out: sized by the estimated work (work in the answer): inline up to 1e7 conductor-solves (SS_POWER_DIST_SYNC_WORK), on the heavy lane above 2e6 (SS_POWER_DIST_LIGHT_WORK), a job above 1e7

case
string

A study case of the document, by id: its switch and source states and in_service are laid over the document. A case that states load levels (load_scale, loads) or solver settings is refused (POWER_CASE_NOT_READ): profiles and the study's DER cases set the loads, settings the solver's. Left out: the document as it stands

network
object

The network document (ss.power.network/1), inline, with its ders, controls and profiles bindings (UD2). Give exactly one of network, network_key, project

network_key
string

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

on
string

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

profiles
object[]

Profile documents (ss.power.profile/1) given inline: each is stored first, so the network's profiles bindings find it by key. The rest are read from the store (power_profile, or an OpenDSS power_import)

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

settings
object

PW4's phase-domain load flow settings: tolerance_pu (1e-8), max_iterations, source (ideal | behind_impedance), earth_model (carson | full_carson | deri), earth_resistivity_ohm_m, transformer_no_load, antifloat_ppm, load_voltage_window ([low, high] per unit), switch_impedance_ohm ([R, X] Ω a conductor of every closed switch that states no resistance, in place of an ideal tie: OpenDSS gives a switch=yes line 0.001 + j0.001 Ω; none by default)

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), handed to the study where it reads them. At most 8. A table is never given inline

variant
string

A variant of project, by slug

Response

study, schema, result_key (BLAKE3 of the result's canonical bytes, the crate's own; 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; never its entries), upstream, parts, validation, summary, work (the estimate the lane was chosen by, and whether the job budget was used), result_inline, and result: dispatch (computed ahead, not dispatched), allocation and method (stated), step_s, steps, resolution_w, connections (each its element, bus, phases, loads, DER and cap), export and import (each: the limits judged, intervals with the envelope per unit of every cap and in W, status, limits broken, binding quantity, the replay's extremes and headroom; total_mwh, the least, mean and most limit, counts held, ceiling, unmet and unsettled; fixed: the fixed limit's energy, intervals broken and the envelopes' energy over it), runs, step_solves, findings

The response is of type object.