File Comments
A FileComment is a comment attached to a file by a user.
List File Comments by Path
Endpoint
GET/file_comments/files/{path}
Return Object
FileComment[]
Authorization Requirement
Available to all authenticated keys or sessions.
Request Parameters
| Parameter | Description |
|---|---|
| path string Required | Path to operate on. |
Additional Arguments
Create File Comment
Endpoint
POST/file_comments
Return Object
FileComment
Authorization Requirement
Available to all authenticated keys or sessions.
Request Parameters
| Parameter | Description |
|---|---|
| body string Required | Comment body. |
| path string Required | File path. |
Update File Comment
Endpoint
PATCH/file_comments/{id}
Return Object
FileComment
Authorization Requirement
Available to all authenticated keys or sessions.
Request Parameters
| Parameter | Description |
|---|---|
| id int64 Required | File Comment ID. |
| body string Required | Comment body. |
Delete File Comment
Endpoint
DELETE/file_comments/{id}
Return Object
No return value.
Authorization Requirement
Available to all authenticated keys or sessions.
Request Parameters
| Parameter | Description |
|---|---|
| id int64 Required | File Comment ID. |
The FileComment Object
Some of the endpoints 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. |