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
<!-- Generated by box-gantry. DO NOT EDIT. -->
# UploadsManager
Reach these methods through the `uploads` field on `client::Client`.
## upload_file_version
`POST /files/{file_id}/content`
| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `if-match` | header | `String` | no |
| `fields` | query | `Vec<String>` | no |
| `content-md5` | header | `String` | no |
**Request body** (`multipart/form-data`): `CreateFileIdContentRequest`
**Returns:** `Files`
**Example**
```rust
let result = client.uploads.upload_file_version("FILE_ID".to_string(), schemas::CreateFileIdContentRequest { /* … */ }, None).await?;
```
## upload_file
`POST /files/content`
| Parameter | In | Type | Required |
|---|---|---|---|
| `fields` | query | `Vec<String>` | no |
| `content-md5` | header | `String` | no |
**Request body** (`multipart/form-data`): `CreateFileContentRequest`
**Returns:** `Files`
**Example**
```rust
let result = client.uploads.upload_file(schemas::CreateFileContentRequest { /* … */ }, None).await?;
```
## option_file_content
`OPTIONS /files/content`
**Request body** (`application/json`): `OptionFileContentRequest`
**Returns:** `UploadUrl`
**Example**
```rust
let result = client.uploads.option_file_content(schemas::OptionFileContentRequest { /* … */ }).await?;
```