OK! Hi Deactivated user, @Renee_Carney and @James :
Big thanks to wfrakes from Instructure for sending me a correct JSON string that works. Here is the deal for other users who run into trouble here:
Here is the CORRECT FORMAT (the documentation is WRONG and/or misleading)
{
"quiz_submissions": [{
"attempt": 3,
"fudge_points": 1,
"questions": {
"10959": {
"score": 2.5,
"comment": "test."
},
"10960": {
"score": 1,
"comment": "test."
}
}
}]
}
Note , the red value is the id number of the quiz question. I got confused because the API documentation is problematic. Here are the examples from the docs:
Main example from the docs
{
"quiz_submissions": [{
"attempt": 1,
"fudge_points": -2.4,
"questions": {
"1": { <========= These look like an array index of the questions in the quiz, not a six+ digit ID number
"score": 2.5,
"comment": "This can't be right, but I'll let it pass this one time."
},
"2": { <========= see?
"score": 0,
"comment": "Good thinking. Almost!"
}
}
}]
}
Three examples from the manual scoring appendix
The following come from the Appendix on manual scoring...
FIRST
{
"quiz_submissions": [{
"fudge_points": null,
"questions": {
"QUESTION_ID": { <============ This HAS the question ID but it fails because.... can you see it?... no attempt number
"score": null,
"comment": null
}
}
}]
}
SECOND
{
"quiz_submissions": [{
"attempt": 1, <========================= This HAS the attempt number but fails because no questions (it works WITH questions)
"fudge_points": -2.4
}]
}
THIRD
{
"quiz_submissions": [{
"attempt": 1,
"questions": {
"1": { <============= We're back to single digit ID numbers
"comment": ""
}
}
}]
}
I hope Instructure fixes up the docs AND please note that the Live! API tool is still broken for this call.
Regards,
Sam Dickerman
Brookline High School