Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
KHSDM
Creator III
Creator III

REST Connection with No Content

I have created a data connection in Qlik Sense using the REST connection. The purpose of the connection is to perform a "logout" to invalidate the login token. But the response from the REST API is without any content. Due to this, I cannot "execute" the API call in QS. (Since it require me to select something to generate the script)

What can I do?

Labels (1)
3 Replies
steeefan
Luminary
Luminary

Are you sure that the API call in the connection is working corretly? What does the documentation say it should return?

Try calling that same API endpoint with a tool such as Postman and examine the results. Compare it to another REST call you are performing and Qlik Sense and see what that returns. Then work your way up from there.

KHSDM
Creator III
Creator III
Author

Hi,

I'm connecting to a BMC system using the REST API. Here is the documentation.

Authentication and permissions in the REST API - Documentation for Remedy Action Request System 19.0...

The response is HTTP/1.1 204 No Content.

I've tested it in Insonmia (similar REST client as Postman), and the API works. (The token will be released and cannot be used again for other API calls) Below is the result.

KT1QtWu32s.png

 

steeefan
Luminary
Luminary

What about creating a call to an endpoint from the same API, then changing the created code to call to the endpoint you actually want to connect to, using sth. like

 

LIB CONNECT TO 'Invalidate Token';

RestConnectorMasterTable:
SQL SELECT 
  1 AS ReturnValue
FROM
  JSON (wrap on) "root" PK "__KEY_root";