File Comments
A FileComment is a comment attached to a file by a user.
List File Comments by Path
Command
files-cli file-comments list-for
Output
Outputs a list of FileComment objects according to the output format.
Authorization Requirement
Available to all authenticated keys or sessions.
Flags
| Flag | Description |
|---|---|
| --path= string Required | Path to operate on. |
Additional Arguments
Create File Comment
Command
files-cli file-comments create
Output
Outputs a FileComment object according to the output format.
Authorization Requirement
Available to all authenticated keys or sessions.
Flags
| Flag | Description |
|---|---|
| --body= string Required | Comment body. |
| --path= string Required | File path. |
Update File Comment
Command
files-cli file-comments update
Output
Outputs a FileComment object according to the output format.
Authorization Requirement
Available to all authenticated keys or sessions.
Flags
| Flag | Description |
|---|---|
| --id= int64 Required | File Comment ID. |
| --body= string Required | Comment body. |
Delete File Comment
Command
files-cli file-comments delete
Output
No output is returned.
Authorization Requirement
Available to all authenticated keys or sessions.
Flags
| Flag | Description |
|---|---|
| --id= int64 Required | File Comment ID. |
The FileComment Object
Some of the commands 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. |