Page 1 of 1

API - health metrics json file using curl - can't figure out

Posted: Sun 4. Apr 2021, 11:00
by pappasbuzz
Hi,
would like to load multiple health data - sleep - at once (for last two months).
I tried:

Code: Select all

curl -d "@data.json" -X POST 'https://runalyze.com/api/v1/metrics/sleep' --header 'token: "xxxxx"'
(not showing real token here)

It runs well if in json file is only one set for one day of data.

Is it even possible to load json with mutliple sets of data?

Re: API - health metrics json file using curl - can't figure out

Posted: Sun 4. Apr 2021, 11:37
by mipapo
https://runalyze.com/doc/personal

Bulk only via `​/api​/v1​/metrics`

Re: API - health metrics json file using curl - can't figure out

Posted: Sun 4. Apr 2021, 13:57
by pappasbuzz
Thank you