POST
/
platform
/
v2
/
sites
/
{site_id}
/
capacity
curl --request POST \
  --url https://api.rebase.energy/platform/v2/sites/{site_id}/capacity \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "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
    }
  ]
}'
"<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.

Path Parameters

site_id
string
required

Body

application/json
data
object[]
required
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

200
application/json
Successful Response

The response is of type any.