Solved
add a subscription to thing via rest api
I need to add a subscription to batch things,how to add subscription to thing via rest api?
I need to add a subscription to batch things,how to add subscription to thing via rest api?
Hi
If you are asking about Dynamic Subscription
You can use the below endpoint
https://<<HOSTNAME>>/Thingworx/Things/<<THINGNAME>>/Services/AddDynamicSubcription
Method : POST
Content-Type : application/json
Body :
{
propertyName: logicProp,
eventName: "Alert",
thingName: undefined,
serviceName: "SubscriptionActionService"
}
Please refer this article for different input parameters - Article - CS388158 - Working with Dynamic Subscriptions in ThingWorx Platform (ptc.com)
/VR
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.