post https://api.sama.com/v2/projects//batches//cancel.json
You can use this endpoint to cancel an ongoing batch task creation job. Any tasks that have already been created will not be archived. You can use the get status of a set of tasks endpoint to see if any tasks were created, and use the delete tasks endpoint to delete them, if necessary.