API endpoint for stopping the execution of tasks

Don't need the outer `()`