Skip to main content
POST
The earthing set: every report its documents allow, the hazard zone drawings and an index, with a hash manifest (`ss.earthing.reportset/1`), or as one zip

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)

format
enum<string>

json (the default) answers the body below; html the index page; zip the whole set as one stored zip (every file under its name, and manifest.json), with fixed dates so the same set is the same bytes

Available options:
json,
html,
zip
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 (set), schema (ss.earthing.reportset/1), title, result_key (BLAKE3 of the manifest's canonical bytes), blob_uri, report_uri, request_key, documents, titles, files: each file with name, title, kind (report_html, report_pdf, report the document, hazard a sheet, index), media_type, key, blob_uri, bytes and for a sheet its number sheet; notes; and document: the manifest (documents by key, reports with each report's hash and files, files by name and hash, notes)

The response is of type object.