pappasbuzz
Neuling
Posts: 3
Joined: Sun 4. Apr 2021, 10:31

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

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?
User avatar
mipapo
Administrator
Posts: 1361
Joined: Mon 29. Jul 2013, 20:26
Location: Kiel
Contact: Website Facebook Twitter

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

https://runalyze.com/doc/personal

Bulk only via `​/api​/v1​/metrics`
###Become a Runalyze supporter###
- Nutzerhilfe/User help -

Run Happy!,
Michael
P.S. Ich antworte gerne kurz und knackig ;)
Image

Return to “Personal API”