Import a PVFARM project onto an existing prediction
Imports the shading model file PVFARM’s Export Shading model (.pvfshade) button produces, building the power plant and its 3D shade scene on an existing prediction.
Send the file exactly as PVFARM exported it. A .pvfshade file is the compressed
form of the same data; an uncompressed .json of that data is also accepted, though
PVFARM does not export one. The import runs asynchronously and can take a few
minutes, so this returns 202 Accepted immediately with a job ID. Poll
GET /Project/Import/PVFarm/{jobId} with that ID until the status is Completed
or Failed.
The target prediction must be a Block Builder prediction with a weather file already
selected. A prediction that already has a built power plant is refused unless the
call carries overwriteExistingPowerPlant=true — the explicit consent to replace it,
and the API twin of the confirmation the web application collects. There is no silent
default.
Unlike the web application there is no review step: the import creates one Module per module type and one Inverter per inverter type from the file’s datasheet values, then builds the plant and the scene. A file that cannot be imported faithfully — an unrecognized module technology, a fixed-tilt project, an old format version — fails with a caller-fixable error code. Nothing is ever substituted automatically.
See the PVFARM import guide for a full walkthrough.
Parameters:
projectId(path, required): The project containing the target prediction.predictionId(path, required): The prediction to build the power plant on.overwriteExistingPowerPlant(query, optional): Set totrueto replace an existing power plant and its 3D scene. Defaults tofalse, which refuses.
Authorizations
Pass Authorization: Bearer <token> on every request. See the Authentication section of the API description for how to fetch a token.
Query Parameters
Body
The .pvfshade file exactly as PVFARM exported it. An uncompressed .json of the same data is also accepted.
Response
The import was accepted and is now running. Nothing has been built on the prediction yet.
Returned when a PVFARM import is accepted. Nothing is built on the prediction yet —
poll statusUrl until the job reaches a terminal status.