Skip to main content
1-Visitor
February 2, 2022
Solved

How to get response in json

  • February 2, 2022
  • 1 reply
  • 4559 views

Thingworx/Groups/ getting html response 

 

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

Best answer by nmutter

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.

1 reply

24-Ruby III
February 2, 2022

 Hi,

 

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

1-Visitor
February 3, 2022

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

nmutter16-PearlAnswer
16-Pearl
February 3, 2022

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.