Trying to create department but getting error

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.\"}]}"
Categories
- All Categories
- 6 Thought Leadership
- 7 Known and Fixed Issues
- 6 Product Roadmap
- 553 Archived
- 10 Accessibility
- 27 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