Skip to main content
POST
Embedded generation connection study: a 30 kW to 5 MW generator or battery at its point of connection, every criterion with and without it against an adopted limits table (`ss.power.connection/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
study
object
required

UD11's study: plant {name, poc, connection, elements (PV systems and storage units of the network's ders), spectra, description}, scenarios [{id, name, load_scale, dispatch {element: {p_w, q_var}}}], controls (static | held), harmonics_scenario, max_control_iterations

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

libraries
object[]

Device libraries (ss.power.devices/1) inline, for the protection criteria

library_keys
string[]

Keys of stored device libraries (power_devices)

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

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), map (where asked), result_inline, and result: outcome (pass, fail or incomplete), criteria (the compliance table: per criterion and scenario the verdict, the worst value and where, the limit and its citation), limits, plant, scenarios, fault_level, protection, harmonics, checklist, not_studied, studies (the PW results it stands on, by hash), findings

The response is of type object.