Skip to main content
POST
Store and check a contingency document (`ss.power.contingencies/1`), against a network where one is given

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)

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, blob_uri, name, rules, contingencies, monitor, ok, checked_against_network, network_key, validation {errors, warnings, info, findings}

The response is of type object.