File Comments
A FileComment is a comment attached to a file by a user.
List File Comments by Path
SDK Method
Files::FileComment.list_for
Return Object
List<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::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
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
nil
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. |