API endpoint for stopping the execution of tasks

Can this be one line or would that exceed the 80 char limit?