Skip to content

Update Comment

Update Comments are comments made on updates found in the Edge for a given realm. They can be created, listed, viewed, and deleted for updates within the appropriate realm.

Field Name Description Type
comment* Comment The comment text string
uid User ID The ID of the user who created the comment integer

* = Required

View a list of comments (paged)

Return A list of comment objects

{
"comment": [
{
"id": 3570319,
"uid": 45552,
"comment": "see my comment",
"created": 1388170192,
"parent_id": 0,
"status": 1,
"likes": 0,
"user_like_action": false,
"links": {
"self": "http:\/\/...\/comments\/3570319"
}
},
{
"id": 3570321,
"uid": 45552,
"comment": "I see your comment",
"created": 1388170340,
"parent_id": 0,
"status": 1,
"likes": 0,
"user_like_action": false,
"links": {
"self": "http:\/\/...\/comments\/3570321"
}
}
]
}

GET {realm}/updates/{update id}/comments/{id}

Section titled “GET {realm}/updates/{update id}/comments/{id}”

View a specified comment

Return A comment

{
"id": 3570319,
"uid": 45552,
"comment": "see my comment",
"created": 1388170192,
"parent_id": 0,
"status": 1,
"likes": 0,
"user_like_action": false
}

Create a comment

Content An object containing comment fields

{
"comment": "This is an awesome topic",
"uid": "23867876"
}

Return An object containing comment fields

{
"id": 3570319,
"uid": 45552,
"comment": "see my comment",
"created": 1388170192,
"parent_id": 0,
"status": 1,
"likes": 0,
"user_like_action": false,
"links": {
"self": "http:\/\/...\/comments\/3570319"
}
}

DELETE {realm}/updates/{update id}/comments/{id}

Section titled “DELETE {realm}/updates/{update id}/comments/{id}”

Delete a comment (cannot be undone)