@api_experimental.route('<STR_LIT>', methods=['<STR_LIT:GET>'])<EOL>@requires_authentication<EOL>def dag_paused(dag_id, paused):
DagModel = models.DagModel<EOL>with create_session() as session:<EOL><INDENT>orm_dag = (<EOL>session.query(DagModel)<EOL>.filter(DagModel.dag_id == dag_id).first()<EOL>)<EOL>if paused == '<STR_LIT:true>':<EOL><INDENT>orm_dag.is_paused = True<EOL><DEDENT>else:<EOL><INDENT>orm_dag.is_paused = False<EOL><DEDENT>session.merge(orm_dag)<EOL>session.commit()<EOL><DEDENT>return jsonify({'<STR_LIT>': '<STR_LIT>'})<EOL>
(Un)pauses a dag