Hi mipapo,
Thanks, yeah that's fixed it.
Interestingly I tried to also make the request with the sample data provided in the API docs, and the response was 500. I guess there's also a formatting issue here also but I couldn't work out what it was...
This is the example data for the sleep route from the api doc
{
"date_time": "2020-10-01T23:00:00Z (ISO_8601)",
"duration": 290,
"rem_duration": 80,
"light_sleep_duration": 70,
"deep_sleep_duration": 70,
"awake_duration": 70,
"hr_average": 45,
"hr_lowest": 45,
"quality": 8
}