Skip to main content
1-Visitor
Feb 2, 2022 5:25 AM UTC
Solved

How to get response in json

Thingworx/Groups/ getting html response 

 

how can i get json response by using this api in thingworx

nmutterAnswer
17-Peridot
Feb 3, 2022 10:11 PM UTC

You need to add header

Acceptapplication/json

Then the response will be in json format. Not sure if this was the question.

What also works (but is not so nice) is to add "<host>/Thingworx/Groups?Accept=application/json" to the url. You can also add maxItems=<number> as by default only 500 items will be returned.

6 replies

24-Ruby IV
Feb 2, 2022 7:54 AM UTC

 Hi,

 

See page 54 in the attached manual - "Configuration API Service — Content Retrieval (JSON Response Structure)".

Translate
1-Visitor
Feb 3, 2022 9:44 AM UTC

How to get Json result from Infotable in thingworx while using any rest api of thingworx

Translate
nmutter17-PeridotAnswer
17-Peridot
Feb 3, 2022 10:11 PM UTC

You need to add header

Acceptapplication/json

Then the response will be in json format. Not sure if this was the question.

What also works (but is not so nice) is to add "<host>/Thingworx/Groups?Accept=application/json" to the url. You can also add maxItems=<number> as by default only 500 items will be returned.

Translate