Import FIT Files via Web API

Is there a way to import a non-Garmin FIT file using a Web API and make it visible in Garmin Connect?

I'm specifically looking for a solution that utilizes the Web API, rather than manually uploading the file through Garmin Connect.

thanks for help