Zum Inhalt springen
English
Esc
↑↓navigate↵open⌘Jpreview

Create a PV plan

Early access: request API access for your workspace at https://bauhow.com/support before using this endpoint.

POST/v1/projects/{projectId}/pv-plans
Authorization
AuthorizationBearer token · headerrequired
Workspace API key (`bh_…`).
Path parameters
projectIdstringrequired
min length 1
Request body
requiredapplication/json
namestring
min length 1 · max length 191
originLatnumberrequired
min -90 · max 90
originLngnumberrequired
min -180 · max 180
originAddressstring | any
Show properties
Any of:
string
string
any
any
buildingIdstring | any
Show properties
Any of:
string
string
any
any
Responses
201OK
idstringrequired
projectIdstringrequired
namestringrequired
buildingIdstring | anyrequired
Show properties
Any of:
string
string
any
any
originLatnumberrequired
originLngnumberrequired
originAddressstring | anyrequired
Show properties
Any of:
string
string
any
any
isFavoritebooleanrequired
summaryobject | anyrequired
Show properties
Any of:
object
object
any
any
createdAtstring<date-time>required
updatedAtstring<date-time>required
schemaVersionintegerrequired
min -9007199254740991 · max 9007199254740991
payloadobjectrequired
Request
curl -X POST "https://app.bauhow.com/api/v1/projects/string/pv-plans" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "originLat": 0,
  "originLng": 0,
  "originAddress": "string",
  "buildingId": "string"
}'
Response
{
  "id": "string",
  "projectId": "string",
  "name": "string",
  "buildingId": "string",
  "originLat": 0,
  "originLng": 0,
  "originAddress": "string",
  "isFavorite": true,
  "summary": {},
  "createdAt": "2024-01-01T00:00:00Z",
  "updatedAt": "2024-01-01T00:00:00Z",
  "schemaVersion": 0,
  "payload": {}
}