To upload the measured data in the Rebase Platform, 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}/actual'

data = {'valid_time':  [
            '2024-07-01T00:00:00Z',
            '2024-07-01T01:00:00Z',
            '2024-07-01T02:00:00Z',
            '2024-07-01T03:00:00Z',
            '2024-07-01T04:00:00Z',
            '2024-07-01T05:00:00Z',
            '2024-07-01T06:00:00Z',
            '2024-07-01T07:00:00Z',
            '2024-07-01T08:00:00Z',
            '2024-07-01T09:00:00Z'],
        'value': [
            88.7,
            86.5,
            56.4,
            67.3,
            67.7,
            88.7,
            86.5,
            56.4,
            67.3,
            67.7]

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

Response example

{
    "message": "Ok"
}