Sha256: a969263e420e7a63128699a6b86445f61113b8df94728ac235e1f1d9348a4208

Contents?: true

Size: 1.66 KB

Versions: 54

Compression:

Stored size: 1.66 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 the X-Files-Cursor-Next 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_for(path).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_for(path).first

file_comment.delete
```

### Parameters

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

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
files.com-1.0.212 docs/file_comment.md
files.com-1.0.211 docs/file_comment.md
files.com-1.0.210 docs/file_comment.md
files.com-1.0.209 docs/file_comment.md
files.com-1.0.208 docs/file_comment.md
files.com-1.0.207 docs/file_comment.md
files.com-1.0.206 docs/file_comment.md
files.com-1.0.205 docs/file_comment.md
files.com-1.0.204 docs/file_comment.md
files.com-1.0.203 docs/file_comment.md
files.com-1.0.202 docs/file_comment.md
files.com-1.0.201 docs/file_comment.md
files.com-1.0.200 docs/file_comment.md
files.com-1.0.199 docs/file_comment.md
files.com-1.0.198 docs/file_comment.md
files.com-1.0.197 docs/file_comment.md
files.com-1.0.196 docs/file_comment.md
files.com-1.0.195 docs/file_comment.md
files.com-1.0.194 docs/file_comment.md
files.com-1.0.193 docs/file_comment.md