Get courses based on an attribute setting

Community Explorer

What api endpoint can be called to fetch a list of all courses in our system based on a course attribute?

The ultimate objective is to find the courses with a restrict_student_past_view attribute equal to 'false', so I can then use the Update Course Settings endpoint to change it to 'true'.

I thought the List your courses endpoint looked promising, but discovered that it only works for the user making the call.