Skip to main content

So I had to restore/retrieve a ticket that had got deleted, in Fs API documentation they’ve given GET call to be used as shown below:

 

However, when a GET call is used, I’m getting the below error in postman:

 

When a PUT call is used, it gives the below:

 

Any idea on how to get this working ?

the cURL command example you sent a screenshot of shows that this is a PUT call, so that’s why the GET call didn’t work. a PUT call is used in APIs to update data, which is why it’s used here as opposed to a GET, which is just to retrieve data and not make any changes.

 

the error you’re getting is because you aren’t specifying the Content-Type as application/json in the header of the API call


Thank you, Nick!! 

Seems I needed to add this under Header tab in Postman.

 


Reply