Skip to main content
POST
Run a contingency document's rules against a network: every contingency written out, stored, with what was left out and why

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
contingencies
object

A contingency document (ss.power.contingencies/1, TP2): named contingencies (id, outages: branch, source or HVDC link ids) and rules (select: all_branches, all_generators, all_hvdc, by voltage, by area, each of a list), with an optional monitor (branches watched, pre and post duties, voltage band)

contingencies_key
string

A stored contingency document's key (power_contingencies_validate, power_contingencies_expand and power_common_mode answer one)

include_document
boolean

false: leave the written-out document out of the answer (read it by key)

network
object

The network document (ss.power.network/1, PW2 with TP2's planning members: ratings by duty, costs, areas, interfaces, HVDC links), inline. Give exactly one of network, network_key, project. Every document is run in its canonical form

network_key
string

The key (b3:<hex>) of a stored network (what power_network, power_import (format matpower_planning keeps costs and ratings), power_raw, power_cgmes and an OPF's dispatched_network_key answer)

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

variant
string

A variant of project, by slug

Response

schema, key (the written-out list), from_key (the document given), network_key, contingencies, validation (the expansion's findings), document

The response is of type object.