Skip to main content
POST
Apply edit verbs to a power network document: the new document, each step's hash and the undo

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
edits
object[]
required

The edit verbs, applied in order (at most 10,000)

include_document
boolean

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

network
object

The network document (ss.power.network/1), inline: name, frequency_hz, base_va, buses, sources, branches, shunts, loads, motors, devices, cases, extensions. SI units. Give exactly one of network, network_key, project

network_key
string

The key (b3:<hex>) of a stored network: what power_network, power_import and power_edit answer as key

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

key, initial_key, episode_key, episode, undo, counts, cases, validation, document

The response is of type object.