OutcomeResult.id is "null" from /api/v1/courses/:course_id/outcome_results, how so?

RuslanDauhiala
Community Explorer

I'm getting outcome results via "/api/v1/courses/:course_id/outcome_results" and some of those results have "id" field equal to "null", wondering why is that? what does it mean? Is it because those results got deleted/overwritten somehow?

https://[tenant].instructure.com/api/v1/courses/39675/outcome_results?page=1&per_page=10

 

{
    "outcome_results": [
        {
            "id": null,
            "mastery": true,
            "score": 20.0,
            "possible": 20.0,
            "percent": 1.0,
            "hide_points": false,
            "hidden": false,
            "submitted_or_assessed_at": "2023-09-12T16:57:44Z",
            "links": {
                "user": "1624",
                "learning_outcome": "289902",
                "alignment": "assignment_6690",
                "assignment": null
            }
        },
        {
            "id": null,
            "mastery": false,
            "score": 0.0,
            "possible": 10.0,
            "percent": 0.0,
            "hide_points": false,
            "hidden": false,
            "submitted_or_assessed_at": "2023-09-12T16:57:44Z",
            "links": {
                "user": "1624",
                "learning_outcome": "289903",
                "alignment": "assignment_6690",
                "assignment": null
            }
        },
        ...
    ]
}

 

notice that `submitted_or_assessed_at` value are the same for those results.

0 Likes