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!
**********SOLVED: This has been solved as the subdomain had to be my institution and not "canvas".************
Why does the GET /entries endpoint return an empty array even after I successfully POST an entry?
GET https://canvas.instructure.com/api/v1/courses/:course_id/discussion_topics/:topic_id/view
This returns all the entries just fine.
GET https://canvas.instructure.com/api/v1/courses/:course_id/discussion_topics/:topic_id/entries
This returns [] .
Here's the 201 response body I received on the successful POST an entry:
{
"id": 130960000000035494,
"user_id": ########,
"parent_id": null,
"created_at": "2019-01-15T15:41:23Z",
"updated_at": "2019-01-15T15:41:23Z",
"rating_count": null,
"rating_sum": null,
"user_name": "Ian Taylor",
"message": "Ian's testing the API integration!",
"user": {
"id": ########,
"display_name": "Ian Taylor",
"avatar_image_url": #####,
"html_url": #####
},
"read_state": "read",
"forced_read_state": false
}
I (wrongly I guess?) assumed that I could then send this request to get the replies on that created entry:
GET https://canvas.instructure.com/api/v1/courses/:course_id/discussion_topics/:topic_id/entries/130960000000035494/replies
But I get a 404???
{
"errors": [
{
"message": "The specified resource does not exist."
}
],
"error_report_id": 130960000000327336
}
Solved! Go to Solution.
This has been solved as the subdomain had to be my institution and not "canvas".
This has been solved as the subdomain had to be my institution and not "canvas".
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