The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Submission api is not working /api/v1/courses/116/students/submissions
i have tried root token and sub account token also for both its giving only
Solved! Go to Solution.
@test29 Welcome! This API endpoint requires request parameters to retrieve submission data, otherwise it defaults to retrieving your submissions (which you may not have any in the course.) Could you provide a sanitized version of what code or call you're trying to make on this endpoint? That will help us troubleshoot your call. Thanks!
Hi @test29,
As @melodyc_lam mentioned, the call you're trying to use needs additional parameters to specify which students you're trying to get submissions for, otherwise it defaults to trying to get submissions for the owner of the API token (which is you, and you're not a student, therefore submissions doesn't make sense and probably leads to that error message). The relevant parameter you need to look at in the API documentation is student_ids[]. If you want to get all submissions for all students, simply adding '&student_ids[]=all' to your URL should do the trick.
Hope this helps!
-Chris
@test29 Welcome! This API endpoint requires request parameters to retrieve submission data, otherwise it defaults to retrieving your submissions (which you may not have any in the course.) Could you provide a sanitized version of what code or call you're trying to make on this endpoint? That will help us troubleshoot your call. Thanks!
Thanks for you reply -
https://mylearnerjourney.instructure.com😞
GET /api/v1/courses/:course_id/assignment_groups?include[]=assignment_visibility&include[]=assignments&scope_assignments_to_student=true&include[]=submission
GET /api/v1/courses/:course_id/assignments/:assignment_id/submissions?include[]=user&per_page=100
GET /api/v1/courses/:course_id/students/submissions?per_page=100&include[]=assignment&include[]=user
{
"status": "unauthorized",
"errors": [
{
"message": "user not authorized to perform that action"
}
]
}
my supplementary question will this api GET /api/v1/courses/:course_id/students/submissions?per_page=100&include[]=assignment&include[]=user get called by sub account admin ? in my test account i have admin right but in actual scenario will have to manage with sub-account admin.
@test29 As long as the subaccount admin has the correct permissions, they will be able to access that API endpoint.
@test29 It looks like you're not specifying student_ids as stated in the API documentation. Right now it's trying to get your submissions out of the course, which you probably don't have any as a developer/admin. Try including this parameter in your call in Postman before you utilize it in your code. Good luck!
Hi @test29,
As @melodyc_lam mentioned, the call you're trying to use needs additional parameters to specify which students you're trying to get submissions for, otherwise it defaults to trying to get submissions for the owner of the API token (which is you, and you're not a student, therefore submissions doesn't make sense and probably leads to that error message). The relevant parameter you need to look at in the API documentation is student_ids[]. If you want to get all submissions for all students, simply adding '&student_ids[]=all' to your URL should do the trick.
Hope this helps!
-Chris
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in