code: def post(self):
          
          self.reqparse.add_argument('templateName', type=str, required=True)
          self.reqparse.add_argument('template', type=str, required=True)
          args = self.reqparse.parse_args()
  
          template = db.Template.find_one(template_name=args['templateName'])
          if template:
              return self.make_response('Template already exists, update the existing template instead', HTTP.CONFLICT)
  
          template = Template()
          template.template_name = args['templateName']
          template.template = args['template']
  
          db.session.add(template)
          db.session.commit()
          auditlog(event='template.create', actor=session['user'].username, data=args)
  
          return self.make_response('Template {} has been created'.format(template.template_name), HTTP.CREATED)
docs: Create a new template