Skip to main content
POST
A PV layout: rows of fixed tables or trackers packed on the buildable area on terrain, with piles, reveals, strings and inverter blocks (GP7)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
spec
object
required

GP7's layout spec: id, name, frame, area (or, left out, area_key: a stored buildable result, gp_buildable's, whose buildable area is read by key and is the layout's area, GP21.b), bearing_deg, pitch_m, structures (longest first), strings, blocks, and optionally terrain, roads_across, roads_along, setback_m, end_gap_m, anchor, align, max_rows. Read strictly by the crate's own type: an unknown member or value is GP_SPEC (400), naming it

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 (a heavy study takes a slot of the lane, or is refused GP_BUSY 429 when the lane is full). Left out: inline up to the study's job threshold (the answer's work), a job above

equipment
object

The layout's equipment inline ({structures: [...]}); give equipment or equipment_key

equipment_key
string

Stored layout equipment (gp_document kind layout_equipment)

include_document
boolean

Also answer the whole layout (default false)

terrain_key
string

A terrain raster in the spatial store (spatial_raster_import): a content key, b3: and 64 lowercase hex digits

Response

calc, schema, result_key (BLAKE3 of the crate's canonical bytes; blob_uri reads it, report_uri is its certificate, which verify_result runs again), request_key, documents (every document read, by role and key), tables (each table read by id, item, revision and content key; never its entries), tables_on, parts (documents made with the result, each by key), layers (rasters and vectors stored in the spatial engine, read by /v1/spatial.raster/{key} and /v1/spatial.vector/{key}), networks (power networks stored for /v1/power.*), summary, lane (light | heavy | job), work (estimate, unit, light_up_to, job_above), result_bytes, result_inline and result

The response is of type object.