talway
Community Contributor

API Call to Conclude Users

I am in need of some programming guidance/expertise.  I am trying to create an API call that will look at an assignment in a specific course and if a student has completed the assignment, conclude the student from the course and write the sis_id to an array to be used at a later point in the program.  I have deciphered the various calls by using the Canvas Live API but do not know how to tie it all together.  I know that at some point I would need something like "for each user with a workflow_state = submitted, conclude the user" and then also write the sis_id to an array.  But that is about the extent of it.  Does someone have a good reference to some samples, perhaps here in the community, or a sample code that they would be willing to share? 

Thank you.

Labels (2)
0 Kudos
2 Replies
melodyc_lam
Community Participant

I think you have the gist of how the program works. API calls are paginated, so you'll have to deal with that as well 🙂

In order to help with code it would be great if you could reply back with the languages of choice that you are most familiar in.

0 Kudos
talway
Community Contributor

Thank you for your reply.  We are using PowerShell for all of our scripting.

0 Kudos