Is it possible to set the active navbar through an API call?
We're moving towards a standard navbar for all courses after years of not enforcing one. We have maybe 40% of courses using a custom navbar and will be removing the permission to update navbars soon. I'd like to be able to make an API call to set the Active Navbar for all OUs this semester, but I haven't seen anything in the documentation that suggests that it is possible. Hoping someone has some ideas.
Thanks,
Andy
Answers
-
One can use the course copy APIs to manage course copy jobs that copy navbar components; however, there are no APIs at this time to manage navbars directly.
-
Hi @Viktor.H.147 - that's what I've found as well, but am a little nervous about using that process on courses that have already been set up by instructors.
-
We're looking for the same functionality in the API - both to set the active navbar and homepage. The "copy component" technically works, but as @Andy.F.437 writes, it can cause problems in cases where the course has already been modified.
I can see in GUI that there is an endpoint called: /d2l/lp/navbars/<course>/setactive, where you can send POST request with the "ActiveNavbarId" that you want to change to in the course. Are there any plans to make something equivalent in the API?
And if not, is there already a PIE item with this request?
-
Hello @Kasper.L.5341, thank you so much for your feedback! Based on my search of PIE, I have found this related request: Allow Navbar and Homepage defaults to be set at Department, School, or other levels (D1389) but it might not be specific to what you need.
It would be such a great idea to have an API functionality to set the active navbar and homepage, and would love to encourage you to request this on our PIE! This is a helpful link to get started!
NOTE: To access PIE and to access the link I shared above, members must be logged in and select their school/organization from the list provided at registration.
Hope this helps!
Krizzy
-
Can I tag on a request to be able to identify which navbar and homepage a given course has from the datasets?
-
Thanks for the clarification, @Krizzy.S.9720 . I have added a PIE item:
https://desire2learn.brightidea.com/ideas/D11985?idea_count=11029