Sha256: 18c710abcbc6c8ee79c706abc4db2fc3fa480cac8d0f4565dbff88ba1cceaccf

Contents?: true

Size: 1.68 KB

Versions: 18

Compression:

Stored size: 1.68 KB

Contents

# FileComment

## Example FileComment Object

```
{
  "id": 1,
  "body": "What a great file!",
  "reactions": {
    "id": 1,
    "emoji": "👍"
  }
}
```

* `id` (int64): File Comment ID
* `body` (string): Comment body.
* `reactions`: Reactions to this comment.
* `path` (string): File path.


---

## List File Comments by path

```
Files::FileComment.list_for(path, 
  per_page: 1
)
```

### Parameters

* `cursor` (string): Used for pagination.  Send a cursor value to resume an existing list from the point at which you left off.  Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
* `per_page` (int64): Number of records to show per page.  (Max: 10,000, 1,000 or less is recommended).
* `path` (string): Required - Path to operate on.


---

## Create File Comment

```
Files::FileComment.create(
  body: "body", 
  path: "path"
)
```

### Parameters

* `body` (string): Required - Comment body.
* `path` (string): Required - File path.


---

## Update File Comment

```
Files::FileComment.update(id, 
  body: "body"
)
```

### Parameters

* `id` (int64): Required - File Comment ID.
* `body` (string): Required - Comment body.


---

## Delete File Comment

```
Files::FileComment.delete(id)
```

### Parameters

* `id` (int64): Required - File Comment ID.


---

## Update File Comment

```
file_comment = Files::FileComment.list.first

file_comment.update(
  body: "body"
)
```

### Parameters

* `id` (int64): Required - File Comment ID.
* `body` (string): Required - Comment body.


---

## Delete File Comment

```
file_comment = Files::FileComment.list.first

file_comment.delete
```

### Parameters

* `id` (int64): Required - File Comment ID.

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
files.com-1.0.246 docs/file_comment.md
files.com-1.0.245 docs/file_comment.md
files.com-1.0.244 docs/file_comment.md
files.com-1.0.243 docs/file_comment.md
files.com-1.0.242 docs/file_comment.md
files.com-1.0.241 docs/file_comment.md
files.com-1.0.240 docs/file_comment.md
files.com-1.0.239 docs/file_comment.md
files.com-1.0.238 docs/file_comment.md
files.com-1.0.237 docs/file_comment.md
files.com-1.0.236 docs/file_comment.md
files.com-1.0.235 docs/file_comment.md
files.com-1.0.234 docs/file_comment.md
files.com-1.0.233 docs/file_comment.md
files.com-1.0.232 docs/file_comment.md
files.com-1.0.231 docs/file_comment.md
files.com-1.0.230 docs/file_comment.md
files.com-1.0.229 docs/file_comment.md