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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!-- Generated by box-gantry. DO NOT EDIT. -->
# ChunkedUploadsManager
Reach these methods through the `chunked_uploads` field on `client::Client`.
## create_file_upload_sessions
`POST /files/upload_sessions`
**Request body** (`application/json`): `FileUploadSessionsCreateRequest`
**Returns:** `UploadSession`
## create_file_by_id_upload_sessions
`POST /files/{file_id}/upload_sessions`
| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
**Request body** (`application/json`): `FileIdUploadSessionsCreateRequest`
**Returns:** `UploadSession`
## get_file_upload_session
`GET /files/upload_sessions/{upload_session_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `upload_session_id` | path | `String` | yes |
**Returns:** `UploadSession`
## update_file_upload_session
`PUT /files/upload_sessions/{upload_session_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `upload_session_id` | path | `String` | yes |
| `digest` | header | `String` | yes |
| `content-range` | header | `String` | yes |
**Request body** (`application/octet-stream`): `Vec<u8>`
**Returns:** `UploadedPart`
## delete_file_upload_session
`DELETE /files/upload_sessions/{upload_session_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `upload_session_id` | path | `String` | yes |
**Returns:** no content
## list_file_upload_session_parts
`GET /files/upload_sessions/{upload_session_id}/parts`
| Parameter | In | Type | Required |
|---|---|---|---|
| `upload_session_id` | path | `String` | yes |
| `offset` | query | `i64` | no |
| `limit` | query | `i64` | no |
**Returns:** `UploadParts`
Paginated — `list_file_upload_session_parts(...)` returns a paginator you drive with `.next().await`, threading the cursor for you. See the [pagination guide](../pagination.md).
## commit_file_upload_session
`POST /files/upload_sessions/{upload_session_id}/commit`
| Parameter | In | Type | Required |
|---|---|---|---|
| `upload_session_id` | path | `String` | yes |
| `digest` | header | `String` | yes |
| `if-match` | header | `String` | no |
| `if-none-match` | header | `String` | no |
**Request body** (`application/json`): `FileUploadSessionCommitRequest`
**Returns:** `Files`