Skip to main content
Mar 11, 2019 9:33 AM UTC
Question

Creating a local service with JS code via REST

Is there a way to add a local service with its JS code for a Thing using TWX REST APIs?

4 replies

Mar 11, 2019 7:21 PM UTC

Hi @ravi2.

 

Can you provide more detail around your use case?  We're not clear on what is needed.

 

Regards.

 

--Sharon

ravi2Author
Mar 12, 2019 3:52 AM UTC

Hi Sharon,

 

I'm creating a local service definition for a Thing Template using the AddServiceDefinition API. But it does not have the ability to add or update the JavaScript code of the Service. So, I was wondering if it is possible do so via any API?

 

Regards,

Ravi

Mar 19, 2019 7:25 PM UTC

Hi @ravi2.

 

Sorry for the delay in responding.

 

Can you provide more information around your use case?  What within the service are you trying to update?  If you can provide more explanation, we may be able to provide an alternate solution to the one you are pursuing.

 

Regards.

 

--Sharon