code: def submit_job(self, halt_on_error=True):
          
          # check global setting for override
          if self.halt_on_batch_error is not None:
              halt_on_error = self.halt_on_batch_error
  
          try:
              r = self.tcex.session.post('/v2/batch', json=self.settings)
          except Exception as e:
              self.tcex.handle_error(10505, [e], halt_on_error)
          if not r.ok or 'application/json' not in r.headers.get('content-type', ''):
              self.tcex.handle_error(10510, [r.status_code, r.text], halt_on_error)
          data = r.json()
          if data.get('status') != 'Success':
              self.tcex.handle_error(10510, [r.status_code, r.text], halt_on_error)
          self.tcex.log.debug('Batch Submit Data: {}'.format(data))
          return data.get('data', {}).get('batchId')
docs: Submit Batch request to ThreatConnect API.