API endpoint for stopping the execution of tasks

Doc when you have a moment.