How do I undelete a Term using the API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
While building the API client side interface for my employer I deleted a Term because I thought I'd be able to recreate it. Well, apparently Canvas keeps the term but it is no long accessible to be used or referenced in subsequent API calls. This wouldn't be a problem except that the SIS Term ID is already taken, so when I went to recreate a new term to replace it, I am presented with this response:
{
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@PerryWay No worries! We all start somewhere 🙂
You'll want to go to your top-level account (root account), click on Settings, then click the Reports tab. One of the (many) choices there is the SIS Export.
Here are some more instructions on how to pull this report: https://community.canvaslms.com/t5/Admin-Guide/How-do-I-view-reports-for-an-account/ta-p/109
With the API, you can call the Start a Report endpoint. This will allow you to pull the SIS Export report file as a CSV for processing in the programming language of your choice 🙂
I haven't tried this, but you may be able to call the Update Enrollment Term endpoint to update the SIS ID even if the item is deleted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Melody, ahh I see, I'm not using the Root account, they made me an Admin account, so I don't see that menu option. I suppose that's only available for Root accounts. As for using the update term endpoint, I had tried that yesterday and got a response "The specified resource does not exist". However, I was finally able to fix the problem by creating a CSV terms.csv file and zip that and then import it and that indeed fixed the problem. Thank you so much for your willingness to help so quickly!
By the end of next week I will be an expert! 🙂 I'm just bumbling around stubbing my toes at the moment!
Perry