Skip to main content
POST
/
platform
/
v2
/
sites
/
{site_id}
/
capacity
Upload Site Capacity
import requests

url = "https://api.rebase.energy/platform/v2/sites/{site_id}/capacity"

payload = { "data": [
        {
            "valid_time": "2024-09-15T00:00Z",
            "value": 6000
        },
        {
            "valid_time": "2024-09-18T12:00Z",
            "value": 12000
        },
        {
            "valid_time": "2024-09-24T12:00Z",
            "value": 6000
        }
    ] }
headers = {
    "Authorization": "<api-key>",
    "Content-Type": "application/json"
}

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

print(response.text)
{
  "errors": [
    {
      "field": "<string>",
      "message": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.rebase.energy/llms.txt

Use this file to discover all available pages before exploring further.

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.

Path Parameters

site_id
string
required

Body

application/json
data
SiteCapacityRow · object[]
required
Minimum array length: 1
Example:
[
{
"valid_time": "2024-09-15T00:00Z",
"value": 6000
},
{
"valid_time": "2024-09-18T12:00Z",
"value": 12000
},
{
"valid_time": "2024-09-24T12:00Z",
"value": 6000
}
]

Response

Successful Response