This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bulk add Calendar Notes

I switched to Epix 2 from Polar, and exported/imported 15 years worth of training data. But the daily notes did not import, that is, the notes that corresponds to a note in the Calendar, not the Activities notes which  imported w.o. problems.

Using Python scripts I found here in the forums, and Json in the browser console I can edit existing activities, but I havent found a way to add these notes. It is about 100 notes, so I'd rather not have to add them manually. Anyone knows if is is possible to script in these notes, or add them via Json in the console?

Regards,

/Pär

  • Just open a site, then F12 -> Network, do something, it displays request which was done, Copy as Fetch.

    So to add a calendar note:

    fetch('https://connect.garmin.com/calendar-service/note',
    {
        'headers': { 'Content-Type':'application/json', 'DI-Backend':'connectapi.garmin.com',
                     'Authorization': '!!!AUTH!!!' },
        'body': '{ "noteName":"TEST", "content":"TEST", "date":"YYYY-MM-DD" }',
        'method': 'POST'
    })

    To edit an existing note, change method:PUT, add id to body:{id:###} and link /id.

    But calendar's notes seem to require Authorization value, unlike other requests.
    So you need to copy yours from original request.
    I didn't check how long it stays the same, so you can only try.

  • That worked, excellent. I wasn't aware of the copy to fetch feature in the console, very helpful.