Adding workout to trainingplan?

Hi,
I'm creating FIT workout files in C#. How can I add them to the trainingplan aswell? I can see that my workouts should be placed in folder GARMIN/Workouts and then I see trainingplan workouts in folder GARMIN/Workouts/schedule and they're named after the date (2022-10-25.FIT) so I initially thought that I could just rename the workout and place it in that folder, but that doesn't seem to work.

Can anyone help with this? Slight smile