With version 1.4 of the
OrgUnit APIs which were released with v10.3 of the Learning Environment, you now have the ability to filter results by orgUnitCode, orgUnitType or orgUnitName. I just did the following call:
GET /d2l/api/lp/1.4/orgstructure/?orgUnitCode=Astro101
Result:
{"PagingInfo":{"Bookmark":"6611","HasMoreItems":false},"Items":[{"Identifier":"6611","Path":"/content/enforced/6611-Astro101/","Name":"Introduction to Astronomy","Code":"Astro101","Type":{"Id":2,"Code":"Course Template","Name":"Course Template"}}]}