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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Is there any API which creates data tables, things, schedulers, subscriptions ?

AP_9587236
17-Peridot

Is there any API which creates data tables, things, schedulers, subscriptions ?

Is there any API which creates data tables, things, schedulers, subscriptions ?

ACCEPTED SOLUTION

Accepted Solutions

Yes, plenty of those in the snippets section. They are services available in the Entity Services resource

VladimirRosu_0-1651214998596.png

 

View solution in original post

4 REPLIES 4

Yes, plenty of those in the snippets section. They are services available in the Entity Services resource

VladimirRosu_0-1651214998596.png

 

Okay. Then any API available to create services and subscriptions and duplicating mashups ?

While there are APIs available to create services and subscriptions dynamically, the platform is not intended to create such objects at scale, due to several reasons, like the fact that once you add a service you should restart your Thing or Template, and in large Thing populations that takes time and it also has the side effect is that the Thing becomes disabled for that short period.

There are several posts touching this subject already - not sure if you searched the forum:  https://community.ptc.com/t5/IoT-Tech-Tips/Create-a-service-dynamically/m-p/533118  and https://community.ptc.com/t5/ThingWorx-Developers/Modify-service-code-programmatically/m-p/515218

Also there's no duplicating API for Mashups at least, but you can do that very easy in a manual way if you get, change the name, then put back the entity as XML

 

Announcements


Top Tags