Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
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.
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.
Thank you very much.
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.
Thank you very much.
To participate in the Instructure Community, you need to sign up or log in:
Sign In