cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Surveyor II

api/self/courses Restrict to termID

Hello,

I'm trying to add a constraint to this API call: "/api/v1/users/self/courses?inlcude[]=term&include[]=sections&per_page=75"

I want to restrict it so only the specific enrollment terms I want will return. I tried adding &enrollment_term_id=:termID but it still is returns all terms.

 

Does any one have any ideas to achieve this?

 

Thanks,

Brian

Labels (2)
0 Kudos
2 Replies
Highlighted
Explorer

Try the List active courses in an account endpoint, setting the enrollment_term_id parameter.

0 Kudos
Highlighted

Sorry for the delay-- This is part of a JS script that makes it easier for our teachers to xlist and rename courses, I am thinking that i have to use that specific end point because of it. But I will try with what you suggested.

 

Thanks,

Brian

0 Kudos