To upload the site capacity time series, use the following python code:

import requests
 
site_id = 'Put the site ID here' 

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

data = {'valid_time':  [
            '2020-07-01T00:00:00Z',
            '2022-10-01T00:00:00Z',
            '2024-01-01T00:00:00Z'],
        'value': [
            500,
            750,
            1200]

response = requests.post(url, headers=headers, data=json.dumps(data))
response.raise_for_status()
response = response.json()