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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to get the Rest API status code alone?

ad24
1-Newbie

How to get the Rest API status code alone?

Is there a method in thingworx to retreive status code of REST API

2 REPLIES 2
AnnaAn
13-Aquamarine
(To:ad24)

Aakash D24​,

Currently I did not find any build-in service in ThingWorx to get the status code of REST API requests.

You may consider to use JavaScript functions but I am not sure if it would work.

Could you describe more details of your use case and see if there are other workaround instead of getting status code directly?

Welcome all to give your ideas for Aakash's question!

Br,

Anna

ad24
1-Newbie
(To:AnnaAn)

Hi Anna An

Thanks for your reply .

The main Use-case is to check the availability of external server,either the server is Up or Down.

to make it more clear i need to check whether Windchill server is up or not

I have chosen status code of API because it will be generic to find any system availability in a generic mannar.

Top Tags