Remove pending batches

Jump to solution
wli40
Community Participant

Is there any way we can remove pending batches in SIS import? 

Labels (1)
0 Likes
1 Solution
A_K_Dekker
Community Participant
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:
 
curl https://<canvas>/api/v1/accounts/<account_id>/sis_imports/<sis_import_id>/abort \
  -H 'Authorization: Bearer <token>'
Returns a SisImport
 
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>'

View solution in original post

0 Likes