Sha256: fa5279ae5fd79f8bb9c86c131df15b58158ae22a4cf907023b5bbcbaac21fc0c

Contents?: true

Size: 1.84 KB

Versions: 44

Compression:

Stored size: 1.84 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` (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.  When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`.  Send one of those cursor value here to resume an existing list from the next available record.  Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
* `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

44 entries across 44 versions & 1 rubygems

Version Path
files.com-1.1.66 docs/file_comment.md
files.com-1.1.65 docs/file_comment.md
files.com-1.1.64 docs/file_comment.md
files.com-1.1.63 docs/file_comment.md
files.com-1.1.62 docs/file_comment.md
files.com-1.1.61 docs/file_comment.md
files.com-1.1.60 docs/file_comment.md
files.com-1.1.59 docs/file_comment.md
files.com-1.1.58 docs/file_comment.md
files.com-1.1.57 docs/file_comment.md
files.com-1.1.56 docs/file_comment.md
files.com-1.1.55 docs/file_comment.md
files.com-1.1.54 docs/file_comment.md
files.com-1.1.53 docs/file_comment.md
files.com-1.1.52 docs/file_comment.md
files.com-1.1.51 docs/file_comment.md
files.com-1.1.50 docs/file_comment.md
files.com-1.1.49 docs/file_comment.md
files.com-1.1.48 docs/file_comment.md
files.com-1.1.47 docs/file_comment.md