Trying to create department but getting error
Options

Haseeb.Ahmad99
Posts: 11 🌱
in Development
I am trying to create a department using valence API, I am sending the data to route:/d2l/api/lp/1.12/orgstructure/ and the data I am sending is the following: {"Type":101,"Name":"Test","Code":"TestCode","Parents":[{"number":6606}]}But I keep getting the following: "{\"Errors\":[{\"Message\":\"Parents list cannot be empty.\"}]}"
Tagged:
Answers
-
Hi @Haseeb Ahmad,
As a starting point, I think the "Parents" array is meant to just have comma-separated org-unit IDs and not a JSON object. Try changing it to this, and see if your problem persists:
"Parents": [6606]
Hope this helps!
Categories
- All Categories
- 6 Thought Leadership
- 7 Known and Fixed Issues
- 6 Product Roadmap
- 553 Archived
- 10 Accessibility
- 28 Community Corner
- 2 Welcome
- Updates
- Member Spotlights
- 4 Events
- 242 Development
- 746 Customer Enablement
- Evaluate - Assess Student Learning
- Get Comfortable with Brightspace
- Communicate - Engage with Your Students
- 1 Create - Set up your Brightspace course
- Action - Add or create student activities
- 26 Partners
- 8 Product News
- 2022
- 2022 Release Notes
- 2021 Release Notes
- 4 Training
- andycat