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
[]*FileComment
Authorization Requirement
Available to all authenticated keys or sessions.
FileCommentListForParams Fields
| Field | 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.
FileCommentCreateParams Fields
| Field | 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.
FileCommentUpdateParams Fields
| Field | Description |
|---|---|
| Id int64 Required | File Comment ID. |
| 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.
FileCommentDeleteParams Fields
| Field | Description |
|---|---|
| Id int64 Required | File Comment ID. |
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. |