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

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

SOLVED
Highlighted
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 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

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

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

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

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