Get the current term id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello again
I want to thank everyone for all their help so far. I am running a report through the API, but it returns data for all the terms. I know how to put the term id in to the request to restrict it. But I am not sure about the best way to know what the current term is. After a little digging around I found the Enrollment Term API. But there is not an endpoint for current term. So I was thinking of using the list all terms (/api/v1/accounts/self/terms) and then finding the max id value. For our institution it looks like that is the way it works. Can I count on that or is there a better way?
cheers
bob
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can get the current term with:
https://instance.instructure.com/api/v1/accounts/self/terms/current
This is outlined in the objects IDs documentation however it doesn't work if there's more than one currently active term.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much.