@app.route('/refresh/<course_id>/', methods=['POST'])
def refresh(course_id=None):
    '\n    Creates a new `refresh_background` job.\n\n    :param course_id: The Canvas ID of the Course.\n    :type course_id: int\n    :rtype: flask.Response\n    :returns: A JSON-formatted response containing a url for the started job.\n    '
    job = q.enqueue_call(func=refresh_background, args=(course_id,))
    return Response(json.dumps({'refresh_job_url': url_for('job_status', job_key=job.get_id())}), mimetype='application/json', status=202)
Creates a new `refresh_background` job.

:param course_id: The Canvas ID of the Course.
:type course_id: int
:rtype: flask.Response
:returns: A JSON-formatted response containing a url for the started job.
@app.route('/refresh/<course_id>/', methods=['POST'])
def refresh(course_id=None):
    '\n    Creates a new `refresh_background` job.\n\n    :param course_id: The Canvas ID of the Course.\n    :type course_id: int\n    :rtype: flask.Response\n    :returns: A JSON-formatted response containing a url for the started job.\n    '
    job = q.enqueue_call(func=refresh_background, args=(course_id,))
    return Response(json.dumps({'refresh_job_url': url_for('job_status', job_key=job.get_id())}), mimetype='application/json', status=202)