Query on appropriate return result of submissions API containing Unpublished Assignment ID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2019
02:04 AM
Hello Canvas Developers,
Good day!
I would like to clarify if the return result of the submissions API with assignment_id parameter containing the ID of an unpublished assignment is correct. For example:
/api/v1/courses/${COURSE_ID}/students/submissions?assignment_ids[]=${UNPUBLISHED_ASSIGNMENT_ID}&student_ids[]=all
I tried the above status. It is returning an "Invalid assignment ids requested." (Actual behaviour)
I believe however that the assignment ID that I entered is valid, and should return no results (Expected behaviour) as there are no submissions, but the assignment ID I provided in the assignment_ids[] param is valid.
{
"error": "invalid assignment ids requested"
}
Looking forward to your point of view.
Thank you and kind regards,
Kit