JSON Workout Upload

Would it be possible to add support for JSON or FIT structured workout uploads? That way we could upload JSON of the different workout formats and have the ability to upload structured workouts of sports other than cycling (i.e. running, swimming, strength). FIT probably takes a lot of effort but you can download a JSON of the different workouts now so I assume the backend interprets JSON already, could just require that format.

1 Like

I am going to do FIT soon for upload and download of workouts. I am not sure what supporting JSON would add? You can just upload the workout text format instead?

1 Like

Yeah text would work, what is the format for that? Right now I can see it only supports ERG, MRC and ZWO files. Also if FIT is coming soon I can wait for that, thank you for the response!

Upload in text format is exactly the same as you would enter in the Intervals.icu web app.

But that’s only possible one at a time. If he has lets say 20 workouts in some json/text Notation, currently there is no way to just upload the bunch

I’m trying to work out the best way for bulk workout upload.
.mrc or .erg or .zwo are grand and all that but as far as I can tell they don’t support power ranges. json does but intervals.icu won’t recognise .json as a valid workout upload format. what are my options for bulk uploads in a format that supports power ranges and that’s not .fit format?

ZWO has power ranges in the form of powerhigh and powerlow IIRC

1 Like

Oh. I better have another look so. That would be great. Thanks.

1 Like

Ya. That powerlow, powerhigh worked a treat. Thanks!
I am able now to get a workout into a folder in my library via python script. ultimately what I wanted was to be able to then send that workout to a specific date in the calendar but I don’t think that is possible via the API? Does anyone know of a way. Don’t see any reference to that here

1 Like

I am setting start_date_local and end_date_local for athlete/0/events endpoint. See Uploading planned workouts to Intervals.icu

Also: Using IA/ChatGPT to write intervals.icu workouts - #28 by Filippo

2 Likes

This is super. Thanks for those links.

1 Like

Other option would be to fill in “description” with Intervals.icu workout text as you would enter it in the web app.

1 Like