Unable to create a Grade.GradeObject using OAuth 2.0 API

Answers
-
Hey @Maja Kokotovic
I tried your suggestion as above, but am still getting the same error. Attached herewith is a screenshot illustrating the error!
Tarun
-
Hey @Tarun Malhotra !
Looking at the JSON you're passing through and the relevant documentation (http://docs.valence.desire2learn.com/res/grade.html#Grade.GradeObject), I can see that you're missing two JSON parameters:
- Description
- Associated Tool
Could you please try updating your JSON so that it looks like this:
{
"MaxPoints":2.0,
"CanExceedMaxPoints":true,
"IsBonus":false,
"ExcludeFromFinalGradeCalculation":false,
"GradeSchemeId":null
"Name":"SoomoChapter2",
"ShortName":"soomo_chapter_1",
"GradeType":"Numeric",
"CategoryId":null,
"Description":{"Content":"Description","Type":"Text"},
"AssociatedTool":null
}
Try it out and let us know if it works!
Maja
-
Hey @Tarun Malhotra,
I think your input JSON is just missing a comma after the GradeSchemeId. The following should work for you:
{
"MaxPoints":2.0,
"CanExceedMaxPoints":true,
"IsBonus":false,
"ExcludeFromFinalGradeCalculation":false,
"GradeSchemeId":null,
"Name":"SoomoChapter2",
"ShortName":"soomo_chapter_1",
"GradeType":"Numeric",
"CategoryId":null,
"Description":{"Content":"Description","Type":"Text"},
"AssociatedTool":null
}
Hope that works for you,
Dave
-
-
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