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

How to create Service of an existing Thing using REST api ?

sauravsubham
4-Participant

How to create Service of an existing Thing using REST api ?

Hi guys,
I know how to create thing, thing shape, set properties of thing, thing template etc.

But my question is about creation or addition of a thing service using REST api.

Like we can add property to an existing thing by the following method, I want to add services to a thing dynamically.

1.POST:-

http://localhost:8080/Thingworx/Things/SauravIsNotAThing/Services/AddPropertyDefinition
2.Body:-
{
"name" : "SomeNumber",
"type" : "NUMBER"
}

3.Header:-

ContentType : application/json ; Header=> appKey:hkhkhkxxxxxxxx 

ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:sauravsubham)

This is not actually possible. You can create a Service Definition that is bound to a Service on an agent (remote service) but not an actual service.

 

Why do you need to be able to create services dynamically?

View solution in original post

1 REPLY 1
PaiChung
22-Sapphire I
(To:sauravsubham)

This is not actually possible. You can create a Service Definition that is bound to a Service on an agent (remote service) but not an actual service.

 

Why do you need to be able to create services dynamically?

Announcements


Top Tags