code: def get_case_template(self, name):
  
          
  
          req = self.url + "/api/case/template/_search"
          data = {
              "query": And(Eq("name", name), Eq("status", "Ok"))
          }
  
          try:
              response = requests.post(req, json=data, proxies=self.proxies, auth=self.auth, verify=self.cert)
              json_response = response.json()
  
              if response.status_code == 200 and len(json_response) > 0:
                  return response.json()[0]
              else:
                  raise CaseTemplateException("Case template fetch error: Unable to find case template {}".format(name))
          except requests.exceptions.RequestException as e:
              raise CaseTemplateException("Case template fetch error: {}".format(e))
docs: :param name: Case template name
          :return: TheHive case template
          :rtype: json