box-open-sdk 0.2.0

Community, unofficial Box API client for Rust — typed models, async managers, and a reqwest runtime with retry, backoff, and token refresh.
Documentation
<!-- 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`): `FileIdContentCreateRequest`

**Returns:** `Files`

**Example**

```rust
let result = client.uploads.upload_file_version("FILE_ID".to_string(), schemas::FileIdContentCreateRequest { /* … */ }, 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`): `FileContentCreateRequest`

**Returns:** `Files`

**Example**

```rust
let result = client.uploads.upload_file(schemas::FileContentCreateRequest { /* … */ }, 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?;
```