Why is the /entries endpoint empty after successfully POSTing an entry?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
**********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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has been solved as the subdomain had to be my institution and not "canvas".