Skip to main content
10-Marble
April 28, 2020
Solved

REST API - Creating a Thing and License Error

  • April 28, 2020
  • 1 reply
  • 1311 views

Hello,

 

I have a customer using Thingworx 8.5 on Linux with Postgres and using a temporary license,

They can create things using the composer, no issues, but whenever they try to create a thing using the REST API, they get an error saying that "LICENSE IS NOT INSTALLED", as you can see attached,

 

Please, any ideas?

Tks,

Chris

Best answer by PEHOWE

Hello Chris,

I have not tested this with a temporary license. Please review my settings and compare to your Postman configuration.

Transaction:

POST   http://<IP  Address>:<port>/Thingworx/Resources/EntityServices/Services/CreateThing

In the Headers Tab

  • appkey   :  <your app key value>
  • Content-Type : application/json
  • accept : text/csv

In the Body Tab

  • raw
  • {"name":"MyAPIThing","description":"My API Thing","thingTemplateName":"GenericThing"}

 

The value for the AppKey is from ThingWorx "Browse -> Security -> Application Key -> <keyname>"

The AppKey needs to be associated to a user which has the privilege to create things. 

 

Let me know if this helps.

 

Peter

1 reply

PEHOWE17-PeridotAnswer
17-Peridot
April 28, 2020

Hello Chris,

I have not tested this with a temporary license. Please review my settings and compare to your Postman configuration.

Transaction:

POST   http://<IP  Address>:<port>/Thingworx/Resources/EntityServices/Services/CreateThing

In the Headers Tab

  • appkey   :  <your app key value>
  • Content-Type : application/json
  • accept : text/csv

In the Body Tab

  • raw
  • {"name":"MyAPIThing","description":"My API Thing","thingTemplateName":"GenericThing"}

 

The value for the AppKey is from ThingWorx "Browse -> Security -> Application Key -> <keyname>"

The AppKey needs to be associated to a user which has the privilege to create things. 

 

Let me know if this helps.

 

Peter