Sha256: f2506b85a10c205a09c2abbd28945a4659a1eb04749c3de92730797517d15200

Contents?: true

Size: 1.66 KB

Versions: 31

Compression:

Stored size: 1.66 KB

Contents

# FileComment

## Example FileComment Object

```
{
  "id": 1,
  "body": "What a great file!",
  "reactions": [
    null
  ]
}
```

* `id` (int64): File Comment ID
* `body` (string): Comment body.
* `reactions` (array): 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

31 entries across 31 versions & 1 rubygems

Version Path
files.com-1.0.327 docs/file_comment.md
files.com-1.0.326 docs/file_comment.md
files.com-1.0.325 docs/file_comment.md
files.com-1.0.324 docs/file_comment.md
files.com-1.0.323 docs/file_comment.md
files.com-1.0.322 docs/file_comment.md
files.com-1.0.321 docs/file_comment.md
files.com-1.0.320 docs/file_comment.md
files.com-1.0.319 docs/file_comment.md
files.com-1.0.318 docs/file_comment.md
files.com-1.0.317 docs/file_comment.md
files.com-1.0.316 docs/file_comment.md
files.com-1.0.315 docs/file_comment.md
files.com-1.0.314 docs/file_comment.md
files.com-1.0.313 docs/file_comment.md
files.com-1.0.312 docs/file_comment.md
files.com-1.0.311 docs/file_comment.md
files.com-1.0.310 docs/file_comment.md
files.com-1.0.309 docs/file_comment.md
files.com-1.0.308 docs/file_comment.md