Skip to content

Blog Post Comment

Comments can be made for any blog post.

Field Name Description Type
id* Schoology Blog ID The internal Schoology ID of the blog string
comment* Comment The comment body string
uid User ID The user ID of the user who posted the comment string

* = Required

View a list of post comments (paged)

Return A list of comments

{
"comment": [
{
"id": 3570311,
"uid": 45552,
"comment": "No JS",
"created": 1388167926,
"status": 1,
"links": {
"self": "http:\/\/...\/comments\/3570311"
}
},
{
"id": 3570313,
"uid": 45552,
"comment": "Yes JS",
"created": 1388168007,
"status": 1,
"links": {
"self": "http:\/\/...\/comments\/3570313"
}
}
]
}

GET {realm}/posts/{post id}/comments/{comment id}

Section titled “GET {realm}/posts/{post id}/comments/{comment id}”

View a specified blog post comment

Return A comment

{
"id": 3570311,
"uid": 45552,
"comment": "Noooooo JS",
"created": 1388167926,
"status": 1
}

Create a blog post comment

Content An object containing blog post fields

{
"comment": "See my comment?",
"uid": "4656546"
}

Return An object containing blog post fields

{
"id": 3570311,
"uid": 45552,
"comment": "Noooooo JS",
"created": 0,
"status": 0,
"links": {
"self": "http:\/\/...\/comments\/3570311"
}
}

DELETE {realm}/posts/{post id}/comments/{comment id}

Section titled “DELETE {realm}/posts/{post id}/comments/{comment id}”

Delete a blog post comment (cannot be undone)