def update_project_post_comment(post_id): response = jsonapi.patch_resource(db.session, request.args, request.get_json(), 'project-post-comments', post_id) return jsonify(response.document), response.status
def update_subject(subject_id): response = jsonapi.patch_resource(db, request.args, request.get_json(), 'subjects', subject_id) return jsonify(response.document), response.status
def update_user_address(user_id): response = jsonapi.patch_resource(db.session, request.args, request.get_json(), 'user-addresses', user_id) return jsonify(response.document), response.status
def update_report_comment(report_id): response = jsonapi.patch_resource(db, request.args, request.get_json(), 'report-comments', report_id) return jsonify(response.document), response.status
def update_gene_comment(gene_id): response = jsonapi.patch_resource(db, request.args, request.get_json(), 'gene-comments', gene_id) return jsonify(response.document), response.status