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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Setting thing shape with rest api

MM_9628870
5-Regular Member

Setting thing shape with rest api

Hi,

Is there a way to set thing shape with rest api as we set thing template? I tired with "thingShapeName" in the Request body of create thing rest api but its not working.

 

ACCEPTED SOLUTION

Accepted Solutions

There is a service under Resources/EntityServices called AddShapeToThing that takes two parameters.  If you're calling it via the rest api, you'll likely need to ensure the Thing has been created (and usually re-started using the RestartThing() service if you're creating it via the api) before calling the above service.

View solution in original post

5 REPLIES 5

There is a service under Resources/EntityServices called AddShapeToThing that takes two parameters.  If you're calling it via the rest api, you'll likely need to ensure the Thing has been created (and usually re-started using the RestartThing() service if you're creating it via the api) before calling the above service.

MM_9628870
5-Regular Member
(To:nmilleson)

yeah I got it! Will try and get back to you.

 

Thanks!

@MM_9628870 ,

 

Try this link:

 

<yourTWxServer>/Thingworx/Resources/EntityServices/ServiceDefinitions/

 

There you should see AddShapeToThing()

MM_9628870
5-Regular Member
(To:nmilleson)

sure! thanks a lot for your help

MM_9628870
5-Regular Member
(To:nmilleson)

Thanks..its working!! 

Announcements


Top Tags