Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Save the Date: QlikWorld Online, June 24-25, 2020. Free global virtual event for data integration and data analytic gurus. Register Today
Highlighted
New Contributor II

Stop Task using Rest API

Hi

I'm able to connect to Qliksense using Rest Api, and start Qlik Task.

Now I need to stop Qlik Task using Rest API but I'm not able to do it.

Is it possible ?

Thanks

 

Labels (1)
1 Solution

Accepted Solutions
Highlighted
Partner
Partner

Re: Stop Task using Rest API

Hi,

try to change the URL to this

https://<Host>:4242/qrs/task/{Task Id}/stop/?xrfkey=abcdefghijklmnop

You did not passed in your url

If it still not execute try to change the user id that passed in X-Qlik-User.

Regards,

Prashant

View solution in original post

7 Replies
Highlighted
Partner
Partner

Re: Stop Task using Rest API

Highlighted
New Contributor II

Re: Stop Task using Rest API

Thanks a lot for the suggestion.

I have tried but it doesn't work.

I posted this command

https://<server_name>:4242/qrs/task/{ID_TASK}stop&xrfkey=<KEY>

but the answer is : The remote server return an error (403) Forbidden

I connect to the server with certificate using sa_repository user.

Any other suggestion ?

Thanks

 

 

 

Highlighted
Partner
Partner

Re: Stop Task using Rest API

Which language you are using?

Use your certificate but you have to put certificate: none 

If you are using postman make sure your ssl certificate button is off..else send me demo of your code ..

Thanks regards

Harsh Gohil

Highlighted
New Contributor II

Re: Stop Task using Rest API

Hello

Attach you can find my simple code.

Thanks

 

Highlighted
Partner
Partner

Re: Stop Task using Rest API

Ok thanks will get back to you.

Highlighted
Partner
Partner

Re: Stop Task using Rest API

Hi,

try to change the URL to this

https://<Host>:4242/qrs/task/{Task Id}/stop/?xrfkey=abcdefghijklmnop

You did not passed in your url

If it still not execute try to change the user id that passed in X-Qlik-User.

Regards,

Prashant

View solution in original post

Highlighted
New Contributor II

Re: Stop Task using Rest API

Great, now it work !!!

Thanks a lot

Best regards