Skip to main content
POST
Planning study set: TP19's printable set (contingency reports, TAPR-style constraint table, OPF, transfer and expansion sheets, route and site options) from stored results or studies run here (`ss.power.planning_studyset/1`, and a zip)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
async
boolean

true: make the set as a job and answer 202 with job_id, poll and events; the finished job's result is this route's body without the manifest (read result_key's blob). false: always inline. Left out: inline up to the studies' summed estimate of 5e6 (SS_POWER_PLANNING_SYNC_WORK), a job above

criteria
object

The planning criteria a person entered: {name, entered_by, basis, items: [{criterion, value}]} (1 to 40 items). The engine carries no planning standard and fills none in: they are printed as entered on every sheet and in full on G-02 beside what each study applied

invented
string

Printed in red under every sheet's banner where the study or its data are invented (at most 300 characters)

limits
object

How much of a long list a sheet lists: violations per contingency study and rows (rankings, prices, flows, constraints), 600 each by default, 1 to 100,000; what is not listed is counted and its result named

name
string

The study's name (1 to 120 characters), on every sheet and the index

networks
object[]

What each network is in this study: [{key, role}] (IEEE 118 base case, at the SCOPF dispatch). Every network a result ran on is in the set; one without a role is studied by power.opf, ...

results
(string | object)[]

The results laid out, in order (at most 32): each a result key (b3:<hex>) of a power_contingency, power_nk, power_opf, power_opf_ac, power_transfer, power_expansion or power_site study, {key, title} (title names a site option), or a study run here {study (power.opf, opf, ...), title, and that route's own members (network | network_key | project, case, contingencies, settings, start_key, ...)}

routes
object[]

Route options (TP14; at most 8): {title, from_label, to_label, route_key (a spatial_cost_route answer's key), corridor_key (a spatial.cost.corridor answer's key), polygons_key (its polygons.key), exposure_key (a spatial.route.exposure answer's key for the least-cost route)}; each read back and its key checked; the route's own cost raster is shaded on the map

titles
object

PW14's title block: project, client, drawn_by, checked_by, date (printed as given, never today's), revision, paper (A4 to A0; A3 by default)

Response

study, schema (ss.power.planning_studyset/1), result_key (BLAKE3 of the manifest's canonical bytes, TP19's own content_hash; blob_uri reads it, report_uri is its certificate, which verify_result runs again: every study run again, the set made again), request_key, documents {results (keys, in order), networks [{key, role, name}], routes}, run_here (each study this request ran: its study, result_key, summary, documents and what it wrote back), titles, zip {key, uri, name, bytes, media_type} (every file and manifest.json, stored, fixed dates), summary {study, invented, sheets, files, constraints, sheet_list [{number, title}], notes (what is not in the set, TP15's slot always), screening}, result_bytes, elapsed_ms, work, result_inline, result (the manifest: criteria, documents, sheets, the constraint table, every file with its hash, notes)

The response is of type object.