Hi,
How can I clear the value of the “sleepSecs” field using the curl command ?
The following syntax does not modify the stored data :
> curl -X PUT https://intervals.icu/api/v1/athlete/xxxx/wellness/2023-04-23 \
> -H "Content-Type: application/json" \
> -H "accept: */*" \
> -u "API_KEY:xxxxxxxxxxxxxxxxx" \
> -d '{"sleepSecs":null}'
Thank you for your help.
Best regards.
You can´t clear a field. Maybe NA works??
It’s blocking. I can push data with non-null values but I cannot automatically erase a history over a period of one year, for example.
We can clear numeric fields by passing in -1.
Thanks David Tinker 
2 Likes
Fantastic. I was looking for this all over. null / nil / “null”/ “nil” doesn’t work
has there been an updated on this front? None from python won’t work - but now -1 is actually written into those fields?
edit: my bad - in another post it’s documented that None in Python should work - and it does, I somehow stripped out keys with None as value before sending 