POST
/
platform
/
v2
/
sites
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": [
      {
        "name": "Berlin",
        "latitude": 52.5,
        "longitude": 13.4
      }
    ],
    "trainLongTermModels": true,
    "trainNearTermModels": true,
    "usePhysicalModels": true,
    "weather_models": [
      "<string>"
    ],
    "create_params": {}
  },
  "type": "solar",
  "assets": [
    {
      "azimuth": 180,
      "tilt": 30,
      "capacity": 1000,
      "install_date": "2020-01-01"
    }
  ]
}'
"<any>"

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
object
required
type
enum<string>
required
Available options:
solar
assets
object[]
required

Response

200
application/json
Successful Response

The response is of type any.