Is there a way to get a list of status of import course content across multiple courses?
Working on doing a course content migration, however, have to go into each course individually to determine the status.
Thank you,
Dona
Dona, have you looked at the List content migrations endpoint? The first option lists content migrations by account.
Hi there,
As dgrobani mentioned, the Content Migrations API is what you are going to want to do. To iterate through multiple courses, a for-loop inside a script should accomplish what you need.
Simple PowerShell example:
<SPAN class="token preprocessor"># OAUTH key</SPAN><BR />$auth <SPAN class="operator token">=</SPAN> <SPAN class="string token">"<auth key>"</SPAN><BR /><SPAN class="token preprocessor"># If you want to hard code an array of course IDs</SPAN><BR />$courseIDs <SPAN class="operator token">=</SPAN> @<SPAN class="punctuation token">{</SPAN><SPAN class="string token">'1'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'2'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'3'</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">'4'</SPAN><SPAN class="punctuation token">}</SPAN><BR /><SPAN class="token preprocessor"># If you want to import a list of course IDs in a text file</SPAN><BR /><SPAN class="token preprocessor"># $courseIDs = Get-Content C:\Temp\courseids.txt</SPAN><BR /><SPAN class="keyword token">foreach</SPAN> <SPAN class="punctuation token">(</SPAN>$c <SPAN class="keyword token">in</SPAN> $courseIDs<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN><BR /> Invoke<SPAN class="operator token">-</SPAN>RestMethod <SPAN class="string token"><SPAN>"</SPAN><A class="jive-link-external-small" href="https://school.instructure.com/api/v1/course/$c/content_migrations" rel="nofollow noopener noreferrer">https://school.instructure.com/api/v1/course/$c/content_migrations</A><SPAN>"</SPAN></SPAN><BR /><SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
How can one track Canvas Media use without having the reports available from Canvas Studio? Checking API endpoints and the Data 2 schema, there do not seem to be dedicated Canvas Media endpoints. Am I missing some? A method I've considered is using the body field of the wiki_pages table, as this contains the html code of…
Hello, I'm trying to utilize an API call to pull completed certificates and was hoping to download and store the certs as a backup. I can successfully run the API call but it will not allow me to view the certificate unless I access the URL while signed into an account where it's "my" cert. Is there a permissions setting…
UI for weekly progression idea that rest in the Schedule tab of the **K-12 UI** of Canvas it's incomplete and I really would not take it and push it into instance but I am going to post it here because in the past people like @James && @robotcars || @Steve_25 have had terrific input in the past... maybe w/their eyes and…
I have a new React + Flask webapp. It has its own login for users to start using the app. I have added this as an external tool in Canvas. What I want initially is to see of canvas users can start using the webapp without having to login if they click on the external tool link in a canvas course. I have 2 methods…
A case for this argument: I live in thee K-12 realm which means we have way too many assignments... which means that at times a simple last 10 assignments of a course question(last 10 date wise) will take us 300 assignments to answer Solution for this example in particular: I would love to make this modified version of an…