Creating thing hierarchy in Network using Postman
Hi All,
I am using Postman (calling RESt API) to create things and network. I was successful in doing so. Now I am trying to build the hierarchy in the network for the things that are created.
I have used API key for authentication, and in the body tab I am using POST and providing the below URL where TestNetwork is my network -
http://XXX.XXX.XXX.XXX:8080/Thingworx/Networks/TestNetwork/Services/AddConnection
I have selected "raw" in the radio button type as JSON
I have used the below code -
{ "from" : "SomeTestThing", "to" : "SomeTestThing1" , "connectionType" : "Contains" }
But I got error 500 - internal server error
I also tried with Javascript
var params = {
from: "SomeTestThing" ,
to: "SomeTestThing1" ,
connectionType: "Contains"
};
Networks["TestNetwork"].AddConnection(params);
got an error 403.
Can you please help me where am I going wrong? I am suspecting the URL but don't know what's the correct way.
Thanks In Advance
Swaraj


