Comments
Last updated
Last updated
Comments are discussions around content and can be added to a folder or file in Onehub. You can create, delete, and list comments. Comments are identified by a unique, random ID.
POST
https://ws-api.onehub.com/:item/:item_id/comments
Creates a comment on the :item
(folder or file) specified via :item_id
.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
DELETE
https://ws-api.onehub.com/:item/:item_id/comments/:id
Deletes the comment specified via :id
from the :item
(folder or file) specified via :item_id
.
GET
https://ws-api.onehub.com/:item/:item_id/comments
Lists all comment for the :item
(folder or file) specified via :item_id
.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
:item
string
The type of item. Can either be folders
or files
.
:item_id
integer
The unique identifier of the item that you would like to create the comment on.
body
string
The text of the comment.
:item
string
The type of item. Can either be folders
or files
.
:item_id
integer
The unique identifier of the item you would like to delete the comment from.
:id
integer
The unique identifier of the comment you would like to delete.
:item
string
The type of item. Can either be folders
or files
.
:item_id
integer
The unique identifier of the item that you would like to list comments from.