Skip to main content
POST
An earthing report: the soil report, the design report, the risk assessment or the commissioning test plan (`ss.earthing.report/1`), with HTML and PDF

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
documents
object
required

The documents the report stands on, each by key or inline. A result names its system, soil and vector documents by key, and the report refuses documents that do not belong together (EARTHING_REPORT_INVALID)

report
enum<string>
required

Which report

Available options:
soil,
design,
risk,
test_plan
format
enum<string>

json (the default) answers the body below; html the report as one self-contained page; pdf the report as a PDF on A4 with a text layer

Available options:
json,
html,
pdf
test_plan
object

The commissioning test plan's options (EG12 makes the plan from the system in its soil); every member may be left out, and the plan says which were defaults

titles
object

What the sheets' title blocks and the reports' heads are printed with. Every member is optional text of at most 120 characters. Nothing is read from a clock: a date is printed only where date gives one

Response

kind (report), report, schema (ss.earthing.report/1), title, result_key (BLAKE3 of the report's canonical bytes), blob_uri, report_uri, request_key, documents (every document by key, inline ones as stored), titles, files (the HTML, the PDF and the document, each with name, title, kind, media_type, key, blob_uri, bytes), notes, and document: the report

The response is of type object.