Skip to main content
POST
/
platform
/
v2
/
sites
Create Site
import requests

url = "https://api.rebase.energy/platform/v2/sites"

payload = {
    "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"
        }
    ]
}
headers = {
    "Authorization": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "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
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