Please take a look at the following links:
When you install the Analytics extension, you'll have a new Thing available with a bunch of Analytic specific services, including an upload service. You'll need to write a set of custom services to create a filter, upload your data using the filter, and then score your data also using the filter.
In addition to Wayne's answer, if your goal is to score new data against an already existing prediction model in ThingWorx Analytics, then it might be worth looking at ThingPredictor which allows for real time scoring and will make it easier than implementing your custom solution via the extension.
ThingPredictor is new with ThingWorx Analytics 7.4 which is not yet released but should come out in the coming days, this is why I mention it as a potential new solution to this.