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

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

Sun 4. Apr 2021, 11:00

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?
0 x

User avatar
mipapo
Administrator
Posts: 1269
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

Sun 4. Apr 2021, 11:37

https://runalyze.com/doc/personal

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

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


Return to “Personal API”

Who is online

Users browsing this forum: No registered users and 1 guest