def update_threshold(threshold=None): """ Update given threshold """ body = request.get_json() code, resp = ThresholdController.update(threshold, body) return code, resp