Skip to main content
1-Visitor
May 14, 2020
Solved

Help: How to apply thing shape when creating thing with REST API

  • May 14, 2020
  • 2 replies
  • 1344 views

Hi,

 

I'm new to REST API and I'm using postman to create things. I tried to apply a thing shape for my thing, but I couldn't make it.

Here is what I post:

eli4_0-1589442277769.png

eli4_1-1589442284034.png

The thing can be created successfully, but the thing shape I want to implement didn't apply to it.:

 

eli4_2-1589442316891.png

 

 

Can anyone help me on this? 

Thanks!

Best answer by rjanardan

From ThingWorx, if you navigate to Resources -> EntityServices -> CreateThing you will see that it takes only 4 inputs none of which is a Thing Shape. 

name
description
tags
thingTemplateName
In order to add ThingShape to Thing, make a POST call to AddShapeToThing

2 replies

rjanardan16-PearlAnswer
16-Pearl
May 14, 2020

From ThingWorx, if you navigate to Resources -> EntityServices -> CreateThing you will see that it takes only 4 inputs none of which is a Thing Shape. 

name
description
tags
thingTemplateName
In order to add ThingShape to Thing, make a POST call to AddShapeToThing
eli41-VisitorAuthor
1-Visitor
May 14, 2020

Thanks! That's the solution!