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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

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

eli4
4-Participant

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

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!

1 ACCEPTED SOLUTION

Accepted Solutions
rjanardan
16-Pearl
(To:eli4)

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

View solution in original post

2 REPLIES 2
rjanardan
16-Pearl
(To:eli4)

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
eli4
4-Participant
(To:rjanardan)

Thanks! That's the solution!

Top Tags