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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Translate the entire conversation x

REST API - Creating a Thing and License Error

vieirac1
10-Marble

REST API - Creating a Thing and License Error

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

ACCEPTED SOLUTION

Accepted Solutions
PEHOWE
17-Peridot
(To:vieirac1)

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

View solution in original post

1 REPLY 1
PEHOWE
17-Peridot
(To:vieirac1)

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

Announcements


Top Tags