Skip to main content
POST
One sanitary or stormwater drainage system of a document: the NCC's discharge-unit method or roof catchment, falls, vents, part-full flow, proposed sizes (MEP11)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
key
string
required

A document key, b3:<hex>: the blob store's id for the canonical bytes

kind
enum<string>
required
Available options:
sanitary,
storm
outlet
integer
required
building_class
string

NCC class, 1 to 9c

frequency_factor
number
kinematic_viscosity
number
manning_n
number
max_fill
number
max_velocity
number
min_grade_percent
number
min_velocity
number
on
string
propose_sizes
boolean
rainfall_intensity_mm_h
number
roughness_mm
number
runoff_coefficient
number
sizes
object[]

[{type_name, outside, bore}] mm: the bores of the project's pipe types and the sizes sizing may choose from, as the person gives them (no table is built in); at most 64

state
string
value_table
string

The id of an adopted value table

Response

OK

basis
object
catchment_m2
number
commands_for_parameters
object[]
findings
object[]
gaps
object[]
group
integer
inlets
object[]
issue_count
integer

Every issue, listed or not.

issues
object[]

R1 of the rules plan: the answer's findings as ss.issue/1 (at most 500, in the answer's own order), beside its own fields, which are unchanged: {id (stable), domain, code (the domain's own), kind, outcome, cause {class: model | method | brief | undetermined, also?, why, by? (the evidence a split reads), read? (whether it was read), census}, subjects, at?, measure?, threshold?, unit?, margin?, message, ladder? (R3: {ladder, tried [{rung, params {key: {value, source: ours | brief}}, result: cleared | improved | no_change | refused, why}], next?, stopped: cleared | question | exhausted | budget}), question? (the id of the typed question it raised)}.

issues_by_class
object

Every issue counted by its cause class: whose problem each is (the model's, ours, the brief's).

key
string

A document key, b3:<hex>: the blob store's id for the canonical bytes

kind
string
ncc
object
outlet
integer
parameters
object[]
roofs
object[]
runs
object[]
schema
string
sizing
object
sizing_refused
object
vents
object[]
verdict
enum<string>
Available options:
meets,
fails,
unevaluable