Skip to main content
1-Visitor
March 11, 2019
Question

Creating a local service with JS code via REST

  • March 11, 2019
  • 1 reply
  • 1853 views

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

1 reply

Community Manager
March 11, 2019

Hi @ravi2.

 

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

 

Regards.

 

--Sharon

ravi21-VisitorAuthor
1-Visitor
March 12, 2019

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

Community Manager
March 19, 2019

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