diff --git a/backend/tests/integration/test_analysis_routers.py b/backend/tests/integration/test_analysis_routers.py index 5f61805c..f0da4112 100644 --- a/backend/tests/integration/test_analysis_routers.py +++ b/backend/tests/integration/test_analysis_routers.py @@ -99,7 +99,7 @@ def test_update_analysis_sections(client, mock_access_token, mock_repositories, mock_repositories["analysis"].collection.find_one.return_value = update_analysis_section_response_json response = client.post( - "/analysis/CPAM0047/sections?type=text", + "/analysis/CPAM0047/sections?row_type=text", headers={"Authorization": "Bearer " + mock_access_token, "Content-Type": "application/json"}, json=updated_sections, ) diff --git a/frontend/src/models/analyses.js b/frontend/src/models/analyses.js index af85c313..75a11c12 100644 --- a/frontend/src/models/analyses.js +++ b/frontend/src/models/analyses.js @@ -56,7 +56,7 @@ export default { } sectionsToUpdate.push(analysisSection); } - const url = `/rosalution/api/analysis/${analysisName}/sections?type=text`; + const url = `/rosalution/api/analysis/${analysisName}/sections?row_type=text`; return await Requests.post(url, sectionsToUpdate); },