1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!-- Generated by box-gantry. DO NOT EDIT. -->
# FileVersionsManager
Reach these methods through the `file_versions` field on `client::Client`.
## list_file_versions
`GET /files/{file_id}/versions`
| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `Vec<String>` | no |
| `limit` | query | `i64` | no |
| `offset` | query | `i64` | no |
**Returns:** `FileVersions`
Paginated — `list_file_versions(...)` returns a paginator you drive with `.next().await`, threading the cursor for you. See the [pagination guide](../pagination.md).
## get_file_version
`GET /files/{file_id}/versions/{file_version_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `Vec<String>` | no |
| `file_version_id` | path | `String` | yes |
**Returns:** `FileVersionFull`
## update_file_version
`PUT /files/{file_id}/versions/{file_version_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `file_version_id` | path | `String` | yes |
**Request body** (`application/json`): `FileVersionUpdateRequest`
**Returns:** `FileVersionFull`
## delete_file_version
`DELETE /files/{file_id}/versions/{file_version_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `file_version_id` | path | `String` | yes |
| `if-match` | header | `String` | no |
**Returns:** no content
## create_file_version_current
`POST /files/{file_id}/versions/current`
| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `Vec<String>` | no |
**Request body** (`application/json`): `FileVersionCurrentCreateRequest`
**Returns:** `FileVersionFull`