To start training/retraining of a sites’s models, 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}/models/train'

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