Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi,
I'am digging how to use postman call RealtimeScore under AnalyticsServer_PrescriptiveThing/Services. I know the link
already show us on how to do that, and I also find the AnalyticsDatasetRef definition at this link
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
Solved! Go to Solution.
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
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
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
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
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?
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