Hi @user539
Certainly the easiest would be to use the Retrain menu in ThingWorx Analytics Builder. This obviously implies manual interaction.
If you want to automate it you will need to code some services that call
AnalyticsServer_DataThing.AppendDataset to add new data
AnalyticsServer_TrainingThing.CreateJob to create a new model with this append dataset
AnalyticsServer_TrainingThing.RetrieveModel to retrieve the PMML file.
The ThignWorx Analytics API help can be found at https://support.ptc.com/help/thingworx_hc/thingworx_analytics_8/thingworx_analytics_8/baggage/index.html
Hope this helps
Kind regards
Christophe