Skip to main content
POST
Hosting capacity: how much PV, battery export or import, or EV charging each bus takes before a limit binds, at an instant or over time (`ss.power.hosting/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
study
object
required

UD8's hosting study: scope ({kind: buses, buses, follow_loads} | {kind: deployments, …} | {kind: time_series, run, der, placement, allowances}), ders, limits {v_min_pu, v_max_pu, loading_max_pct, step_max_pu, reverse_flow_w, fault_level}, criteria, method (iterative | sensitivity | both), controls (static | held), resolution_w, max_w, pre_existing (zero | no_worse), margin, sensitivity_step_w, 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

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

map
object

Draw the result on its located network (UD16) and store the layers and the scene in the spatial engine: frame or epsg (the frame the bus positions are in: a frame object such as {"frame": "geodetic"} for longitude and latitude, or an EPSG code such as 7855 for GDA2020 / MGA zone 55; left out, the GIS build's record ud.gis), snapshots (further snapshot keys every layer names), breaks_kw (hosting), band ({v_min_pu, v_max_pu}: a snapshot's voltage classes), window (a time-series run: also every window steps as a time-indexed layer, from full_series.voltages or monitored buses), name. The answer's map holds scene, open (/spatial?scene=<key>) and each layer's key

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), map (where asked), result_inline, and result: nodes (per bus and DER case: the value, its status, the binding criterion with element, value and limit, both methods where both ran), cases, criteria (judged or refused, with why), deployments or time_series per scope, solves, findings

The response is of type object.