Python
import requests url = "https://api.rebase.energy/platform/v2/sites/{site_id}/capacity" headers = {"Authorization": "<api-key>"} response = requests.delete(url, headers=headers) print(response.text)
{ "errors": [ { "field": "<string>", "message": "<string>" } ] }
Delete the capacity of a site for a given date range
Your API key. This is required to access our API programatically. You can view your API key in the Rebase dashboard.
Successful Response