Remove pending batches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2020
11:06 AM
Is there any way we can remove pending batches in SIS import?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2020
05:07 AM
Hi @wli40 ,
You can do this through the api, I found this in the API documentation I hope this will help solve your question.
PUT /api/v1/accounts/:account_id/sis_imports/:id/abort
Scope: url:PUT|/api/v1/accounts/:account_id/sis_imports/:id/abort
Abort a SIS import that has not completed.
Aborting a sis batch that is running can take some time for every process to see the abort event. Subsequent sis batches begin to process 10 minutes after the abort to allow each process to clean up properly.
Example Request:
Returns a SisImportcurl https://<canvas>/api/v1/accounts/<account_id>/sis_imports/<sis_import_id>/abort \ -H 'Authorization: Bearer <token>'
PUT /api/v1/accounts/:account_id/sis_imports/abort_all_pending
Scope: url:PUT|/api/v1/accounts/:account_id/sis_imports/abort_all_pending
Abort already created but not processed or processing SIS imports.
Example Request:
curl https://<canvas>/api/v1/accounts/<account_id>/sis_imports/abort_all_pending \ -H 'Authorization: Bearer <token>'