Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
MCastoro
Contributor II
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
Prashant_Naik
Partner - Creator II
Partner - Creator II

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
Harsh_Gohil
Partner - Contributor III
Partner - Contributor III

MCastoro
Contributor II
Contributor II
Author

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

 

 

 

Harsh_Gohil
Partner - Contributor III
Partner - Contributor III

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

MCastoro
Contributor II
Contributor II
Author

Hello

Attach you can find my simple code.

Thanks

 

Harsh_Gohil
Partner - Contributor III
Partner - Contributor III

Ok thanks will get back to you.

Prashant_Naik
Partner - Creator II
Partner - Creator II

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

MCastoro
Contributor II
Contributor II
Author

Great, now it work !!!

Thanks a lot

Best regards