Task Cancel API - How to id the task I want to cancel

I am looking into the tasks api. I have found the listing api using curl /_tasks?detailed=true&actions=*search&pretty" and I can successfully cancel one or all.

I would like to implement a [Cancel] button in my application for users who are bored waiting for a long query. How can I tag a query with a unique ID so I know which task to cancel when the user presses that cancel button.

This sounds like a job for the X-Opaque-Id header.

Yes, thanks. Now I need to upgrade to get this feature.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.