Invalid parameters attempting to update existing course's end date
Options

Nathan.MacDonald72
Posts: 5 🌱
I am attempting to update an existing course using the test tool to verify how my data should look for my API. I can't get the update to work with even the minimum data required, and I'm not sure why. When using the following request for my 'aspentest.desire2learn.com'/d2l/api/lp/1.24/courses/6724 and the following JSON:{ "Name": "Introduction to Economics", "Code": "SBS190", "IsActive": false} I am getting an invalid parameter response:{ "type": "http://docs.valence.desire2learn.com/res/apiprop.html#invalid-parameters", "title": "Invalid Parameters", "status": 400, "detail": "Request has missing or invalid parameters."}
Tagged:
Answers
-
After a bit of trial and error I figured out that despite some values being nullable, you still need to provide them in the request JSON.
I was missing StartDate and EndDate in the request.
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