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

Community Tip - You can change your system assigned username to something more personal in your community settings. 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!

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!

Announcements


Top Tags