cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

how to use postman call optimization Service in Thingworx Analytics?

SOLVED
Regular Member

how to use postman call optimization Service in Thingworx Analytics?

Hi,

I'am digging how to use postman call RealtimeScore  under AnalyticsServer_PrescriptiveThing/Services. I know the link

https://support.ptc.com/help/thingworx_hc/thingworx_analytics_8/thingworx_analytics_8/baggage/index....

already show us on how to do that, and I also find the AnalyticsDatasetRef definition at this link

https://support.ptc.com/help/thingworx_hc/thingworx_analytics_8/thingworx_analytics_8/baggage/index....

 

But I still want know how can I generate this long AnalyticsDatasetRef data shape, and how can I pass them into postman(need a real sample), as of now I got the "403 Forbidden" even I give authentication information to Header section within postman.

 

Thanks.

Terry

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: how to use postman call optimization Service in Thingworx Analytics?

Hi Terry

 

Just for the record, as we discussed offline

the format of modelUIr is of type http://<TWA server>/results/models/<jobId>

The format for dataset is parquet

 

Kind regards

Christophe

 

 

View solution in original post

5 REPLIES 5

Re: how to use postman call optimization Service in Thingworx Analytics?

Hi

 

Maybe this article: https://www.ptc.com/en/support/article?n=CS271485 can be useful.

It gives some general info on how to build a REST API for Analytics, and it also have a link to a postman json collection with some REST call sample, so you can see how this has been built.

 

Hope this helps

Kind regards

Christophe

 

Re: how to use postman call optimization Service in Thingworx Analytics?

Hi Morfin,

I knew this link, while I am still stuck in how to generate this long json content.

Now I am testing this  AnalyticsServer_PrescriptiveThing.RealtimeScore  by UI, and encounter error message as attached.

 I assigned modeluri as 

twx://TW.AnalysisServices.ModelRepository/P1/ds_gear_Mdemo_fa43be14-1381-4268-9289-de65297d6763.xml
datasetref as
database uri  ---   dataset:/e51f8cdf-5c38-4442-bed5-f46439a3fc1a

format ---   csv

 

Can somebody guide me whether something wrong for these inputs?

Thanks.

 

Regards,

Terry

Re: how to use postman call optimization Service in Thingworx Analytics?

Hi Terry

 

Just for the record, as we discussed offline

the format of modelUIr is of type http://<TWA server>/results/models/<jobId>

The format for dataset is parquet

 

Kind regards

Christophe

 

 

View solution in original post

Re: how to use postman call optimization Service in Thingworx Analytics?

Thanks a lot, Christophe.

 

Now I am trying to print all result from realtimescore by a thing(THING_OPTDEMO) derived from PrescriptiveMicroserver, while it always prompt "THING_OPTDEMO is not connected" when we try to call that by scripts. Can somebody indicate how can we get a thing connected?

Re: how to use postman call optimization Service in Thingworx Analytics?

Hi Terry

 

I see that you just opened a case for this  question, so the investigation will be done through it.

Note that if you have new questions it is best to open new thread rather than adding to an existing one unrelated.

 

Thanks

Christophe