Skip to main content
POST
Feeder reconfiguration: the normally open points that cut losses or relieve a constraint, radial kept (`ss.power.reconfig/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
study
object
required

UD12's study: objective ({kind: losses} | {kind: relieve, constraint}), evaluation ({kind: snapshot, engine: balanced | unbalanced} | {kind: steps, engine, steps} | {kind: time_series, study}), and optionally case, switchable, method (branch_exchange | exhaustive), max_configurations, max_evaluations, min_improvement, depth, balanced, unbalanced

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

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

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: status (improved, unchanged, start_unevaluable), start and best (open branches and score), loss_reduction and its percent, margin_gain, sequence (the switching operations), moves, candidates (every configuration evaluated), topology, switchable, findings

The response is of type object.