File Comments
A FileComment is a comment attached to a file by a user.
List File Comments by Path
SDK Method
FileComment.ListFor();
Return Object
FilesList<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
FileComment.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
fileComment.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
fileComment.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. |