Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

[ODM-11738] Transfer wipeStudy to MetainfoEditorLibrary #249

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jupyter_notebooks/sharing-exporting-deleting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
],
"source": [
"object_to_delete = 'GSF015445'\n",
"url_delete_object = app_endpoint + 'arvados-importer/wipeStudy'\n",
"url_delete_object = app_endpoint + 'study-metainfo-editor/wipeStudy'\n",
"s.post(url=url_delete_object, json=[object_to_delete])"
]
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/import/delete_study_via_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def delete_study(study_accession, srv, token):
url_authenticate = app_endpoint + 'signin/authenticateByApiToken'
s = requests.Session()
s.post(url_authenticate, json=[token])
url_delete_object = app_endpoint + 'arvados-importer/wipeStudy'
url_delete_object = app_endpoint + 'study-metainfo-editor/wipeStudy'
header = {'Genestack-API-Token': token}
response = s.post(url=url_delete_object, json=[study_accession], headers=header)
print(response.status_code)
Expand Down