The Comments API provides a range of actions for manipulating comments within Unet.
comments/RESOURCE_URI — URI is obtained from token exchange point.
PARENT_RESOURCE_URI — URI that contains a parent endpoint (e.g. RESOURCE_URIentries/ID).
| Prefix | Endpoint | Description |
|---|---|---|
| PARENT_RESOURCE_URI | comments/ | Getting a list of comments |
| PARENT_RESOURCE_URI | comments/add/ | Adding a comment |
| RESOURCE_URI | comments/ID | Retrieving comment details |
| RESOURCE_URI | comments/ID/edit/ | Editing a comment |
| RESOURCE_URI | comments/ID/delete/ | Deleting a comment |
| RESOURCE_URI | comments/ID/rating/ | Getting a list of comment ratings |
comments/comments/IDcomments/add/comments/ID/edit/comments/ID/delete/| Name | Description |
|---|---|
limit (o) |
Number of items expected in response. |
cursor (o) |
The value of the |
tree_structure (o) |
| Name | Description |
|---|---|
items[] |
|
limit |
Number of returned items (items per page). |
next_cursor |
URL for the next portion of items (next page). |
prev_cursor |
URL for the previous portion of items (previous page). |
total_count |
Total number of items. |
| Name | Description |
|---|---|
id |
|
parent_id |
ID of the parent comment. |
nesting_level |
Present if a tree structure is requested. |
index_number |
Present if a tree structure is not requested. |
author_uid |
|
created_time |
|
edits[] |
|
message |
The comment text. |
can_edit |
|
can_delete |
|
can_reply |
|
rating |
|
attachments |
| Name | Description |
|---|---|
parent_id |
ID of the parent comment (for posting a reply). |
message (r) |
|
attachments[] |
| Name | Description |
|---|---|
uid |
ID of a user who edited the comment. |
time |
Time when the comment was edited. |