code: def create_case(self, case):
  
          
  
          req = self.url + "/api/case"
          data = case.jsonify()
          try:
              return requests.post(req, headers={'Content-Type': 'application/json'}, data=data, proxies=self.proxies, auth=self.auth, verify=self.cert)
          except requests.exceptions.RequestException as e:
              raise CaseException("Case create error: {}".format(e))
docs: :param case: The case details
          :type case: Case defined in models.py
          :return: TheHive case
          :rtype: json