Create Location
Locations
Create Location
Create a new location with automatic elevation and timezone enrichment
POST
Create Location
POST /locations
Create a new project location. The API automatically fetches elevation and timezone data from the provided coordinates if those fields are not supplied in the request body.Notes
- Requires a valid JWT with write access.
nameis required.latitudeandlongitudeare expected for most workflows; the deprecatedlat/lngaliases are still accepted but should not be used for new integrations.- If
elevationis omitted, it is auto-fetched from an elevation service based on coordinates. - Timezone (
timeZoneandtimeZoneName) is always auto-detected from coordinates in the response. - You can optionally include a nested
weatherDataobject in the request body to create and link a weather data record in a single call. This follows the legacy creation pattern — for more control, create weather data separately viaPOST /weatherdataand associate it bylocationId. - Optional fields include
streetAddress,ashrae(ASHRAE climate zone index),farShading(horizon profile), andsoiling(monthly soiling factors). - See
GET /locations/{location_id}to retrieve the created location. - See
POST /weatherdataorPOST /weatherdata/fetchto create weather data independently.
