Skip to main content
POST
/
platform
/
v2
/
sites
Create Site
curl --request POST \
  --url https://api.rebase.energy/platform/v2/sites \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My site",
  "latitude": 52.5,
  "longitude": 13.4,
  "settings": {
    "model_resolution": "1h",
    "additional_points": [],
    "trainLongTermModels": true,
    "trainNearTermModels": true,
    "usePhysicalModels": true,
    "weather_models": [],
    "create_params": {}
  },
  "type": "solar",
  "assets": [
    {
      "azimuth": 180,
      "tilt": 30,
      "capacity": 1000,
      "install_date": "2020-01-01"
    }
  ]
}
'
{
  "errors": [
    {
      "field": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Your API key. This is required to access our API programatically. You can view your API key in the Rebase dashboard.

Body

application/json
  • SolarSiteItem
  • WindSiteItem
  • LoadSiteItem
name
string
required
Example:

"My site"

latitude
number
required
Required range: -90 <= x <= 90
Example:

52.5

longitude
number
required
Required range: -180 <= x <= 180
Example:

13.4

settings
SiteSettings · object
required
type
enum<string>
required
Available options:
solar
Allowed value: "solar"
assets
PVAsset · object[]
required
Minimum array length: 1

Response

Successful Response