Your Community is getting an upgrade!
Read about our partnership with Higher Logic and how we will build the next generation of the Instructure Community.
Found this content helpful? Log in or sign up to leave a like!
Hi all,
I've got what I hope is a very simple task that I'm someone can set me toward the right direction. I have a list of 2K courses, I have a csv with their canvas course ids, and I'd like make Postman reset the content of each course.
Here's what I have in postman (it's in beta):
Here is my csv file, trying just a few at first:
Finally, here is what I have in the runner with my csv selected:
I'm not sure what the missing piece. I've double-checked my bearer authorization and I know that's accurate. I don't think I'm giving postman enough information to parse the csv file. I defined the course_id as a variable... maybe I need to add something under parameters?
Any help is greatly, greatly appreciated, as I could use that information to apply to other API calls.
Thanks!
Solved! Go to Solution.
Have you tried removing the colon from in front of course_id in the request URL? Instead of {{:course_id}}, it should be {{course_id}}
Have you tried removing the colon from in front of course_id in the request URL? Instead of {{:course_id}}, it should be {{course_id}}
That got her workin', thank you
You're welcome 😀
Pretty sure @JamesSekcienski is correct. I looked at the variable documentation in Postman and they do not have a semi-colon. https://learning.postman.com/docs/sending-requests/variables/
Hi James,
you should remove the curly brackets and leave it as /:course_id/reset_content. Then add the curly brackets in the Path variable {{course_id}}.
Here is a screenshot on my end. This should work without issue. Also, make sure to add Test scripts to validate your API response.
Let me know if it worked
-Xavier 👾
Thanks! What ended up working was putting {{course_id}} in the request url. It's so finicky and esoteric sometimes. I will check out these scripts.
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign InTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign In