original_docstring: Update an existing DAG File to Airflow
docstring: Update an existing DAG File to Airflow
docstring_tokens: Update an existing DAG File to Airflow
code: def put(self):
          """Update an existing DAG File to Airflow"""
          args = self.post_parser.parse_args()
          file = args.get(FILE_KEY)
          dag_file_path = os.path.join(settings.DAGS_FOLDER, file.filename)
  
          validate_file_for_upload(file)
          check_for_file(dag_file_path)
  
          file.save(dag_file_path)
          return Response(status=PUT_RESPONSE_SUCCESS_CODE)
code_tokens: def put ( self ) : args = self . post_parser . parse_args ( ) file = args . get ( FILE_KEY ) dag_file_path = os . path . join ( settings . DAGS_FOLDER , file . filename ) validate_file_for_upload ( file ) check_for_file ( dag_file_path ) file . save ( dag_file_path ) return Response ( status = PUT_RESPONSE_SUCCESS_CODE )
short_docstring: Update an existing DAG File to Airflow
short_docstring_tokens: Update an existing DAG File to Airflow
comment: """Update an existing DAG File to Airflow"""