code: def add_job():
      
  
      data = request.get_json(force=True)
  
      try:
          job = current_app.apscheduler.add_job(**data)
          return jsonify(job)
      except ConflictingIdError:
          return jsonify(dict(error_message='Job %s already exists.' % data.get('id')), status=409)
      except Exception as e:
          return jsonify(dict(error_message=str(e)), status=500)
docs: Adds a new job.