File Comments
A FileComment is a comment attached to a file by a user.
List File Comments by Path
SDK Method
files_sdk.file_comment.list_for()
Return Object
ListObj[FileComment]
Authorization Requirement
Available to all authenticated keys or sessions.
Method Arguments
| Argument | Description |
|---|---|
| path string Required | Path to operate on. |
Additional Arguments
Create File Comment
SDK Method
files_sdk.file_comment.create()
Return Object
FileComment
Authorization Requirement
Available to all authenticated keys or sessions.
Method Arguments
| Argument | Description |
|---|---|
| body string Required | Comment body. |
| path string Required | File path. |
Update File Comment
SDK Method
file_comment.update()
Return Object
FileComment
Authorization Requirement
Available to all authenticated keys or sessions.
Method Arguments
| Argument | Description |
|---|---|
| body string Required | Comment body. |
Delete File Comment
SDK Method
file_comment.delete()
Return Object
No return value.
Authorization Requirement
Available to all authenticated keys or sessions.
The FileComment Object
Some of the methods above return a FileComment object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| id int64 | File Comment ID |
| body string | Comment body. |
| reactions array(object) | Reactions to this comment. |