Skip to main content
POST
Safety assessment: surface potential, touch and step voltages over the site against cited criteria, with mitigation proposals (EG7)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
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). false: always inline. Left out: inline up to 5,000 straight runs of the system (SS_EARTHING_SYNC_RUNS), a job above

fault_case
string

The system's fault case the answer is sized by, by id: its current (entered, or a PW study case's) times its split (entered, or worked out over its return paths by EG8). Left out: per ampere, or the settings' bem.current_a / bem.potential_v

on
string

The date (YYYY-MM-DD) the tables must be in force on; today when left out

power_network_key
string

The key of a stored PW network (ss.power.network/1, from power_network); left out, the network the system names (power_network), read from the store. A fault case from a PW study case, an earth wire read from a PW branch and clearing times from devices read it

settings
object

bem: the boundary-element solver (EG5, EG6): tolerance (0.005: the ladder stops when Rg moves less than 0.5 %), max_rungs (12), max_segments (10,000), first_segment_length_m, min_segment_radii (4), grade_free_ends (true), leave_out_unsupported (false: plates and foundations refused), kernel (auto | images | hankel_key201 | hankel_wer201, layered soil), and the drive where there is no fault_case: current_a or potential_v; split: the fault current split (EG8): frequency_hz (50), earth_resistivity_ohm_m (the deepest layer's), fault (line_to_earth | line_to_line_to_earth); criteria_table (a value table prefix; IEEE 80 when left out), body_weight (50kg | 70kg), frequency_hz (50), shock_duration_s (the fault case's main clearing time), x_over_r, decrement (true), reach_m (1), raster_step_m (half the smallest mesh spacing, at most 1 m), buffer_m (3), far ({extent_m, step_m}: a coarser map further out), touch_metal (over_grid | drawn), max_nodes (1,000,000), mitigation ({propose: true, surface_resistivity_ohm_m: 3000, surface_thickness_m: 0.1, ring_offset_m: 1}). Every member is optional unless said; an unknown one is refused (EARTHING_SETTINGS)

soil
object

The soil model (ss.earthing.soil/1) inline: source (entered or fitted) and layers top down (resistivity_ohm_m, thickness_m but for the last). Left out with no soil_key: the soil model the system names (soil), read from the store

soil_key
string

The key of a stored soil model

state
string

The state code the tables must be in force for (NSW, VIC, …)

system
object

The system document (ss.earthing.system/1) inline: frame, soil (the soil model's key), power_network, conductors, rods, plates, foundations, bonds, fences, surface_layers, returns, fault_cases, objects. Give system or system_key

system_key
string

The key (b3:<hex>) of a stored system: what earthing_document, earthing_import and earthing_edit answer as key

tables
string[]

Ids of value tables (ss.mep.values/1) a person adopted (mep_values_import, mep_values_adopt), at most 8. A table named that is missing, not adopted, not in force or unreadable refuses the calculation (EARTHING_VALUE_TABLE); no paid value is built in

Response

calc, 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, inputs (every document by key), fault_case, tables (each table read, by id, item, revision and content key: its citation; never its entries), tables_on, upstream, documents (earthing documents made with the result, by key), layers (rasters and vectors the result names, stored in the spatial engine: /v1/spatial.raster/{key}, /v1/spatial.vector/{key}), summary, lane (light | heavy | job), result_inline and result: the result document, and proposals

The response is of type object.