Hi Jeff,
The best way to do this will vary with the API versions offered by the back-end service, I believe.
If you're using a Learning Suite prior to v10.3.0, then the process is more cumbersome:
- Then, using the root org's ID, you can find all its descendants. Presuming that your using Learning Suite v10.1.0 or later (and if not, you ought to be, because at this point LS versions 9.4.1 and 10.0.0 are a month away from their end-of-life), you should use the
route that returns results in data pages, because it's likely that the list of all course offering descendants from the root org unit is of considerable size. In any case, with the older routes that got properties for children/parent (one generation removed) and ancestor/descendant (
n generations removed) org units, you can use the
ouTypeId query parameter to filter results down to particular org unit types (by ID).