box-open-sdk 0.4.1

Box API client for Rust (open source, community, punk rock) — typed models, async managers, and a reqwest runtime with retry, backoff, and token refresh.
Documentation
<!-- Generated by box-gantry. DO NOT EDIT. -->
# SharedLinksFilesManager

Reach these methods through the `shared_links_files` field on `client::Client`.

## get_shared_items

`GET /shared_items`

| Parameter | In | Type | Required |
|---|---|---|---|
| `if-none-match` | header | `String` | no |
| `fields` | query | `Vec<String>` | no |
| `boxapi` | header | `String` | yes |

**Returns:** `FileFull`

**Example**

```rust
let result = client.shared_links_files.get_shared_items("BOXAPI".to_string(), None).await?;
```

## get_file_get_shared_link

`GET /files/{file_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `String` | yes |

**Returns:** `FileFull`

**Example**

```rust
let result = client.shared_links_files.get_file_get_shared_link("FILE_ID".to_string(), "FIELDS".to_string()).await?;
```

## update_file_add_shared_link

`PUT /files/{file_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `String` | yes |

**Request body** (`application/json`): `UpdateFileAddSharedLinkRequest`

**Returns:** `FileFull`

**Example**

```rust
let result = client.shared_links_files.update_file_add_shared_link("FILE_ID".to_string(), "FIELDS".to_string(), schemas::UpdateFileAddSharedLinkRequest { /* … */ }).await?;
```

## update_file_update_shared_link

`PUT /files/{file_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `String` | yes |

**Request body** (`application/json`): `UpdateFileAddSharedLinkRequest`

**Returns:** `FileFull`

**Example**

```rust
let result = client.shared_links_files.update_file_update_shared_link("FILE_ID".to_string(), "FIELDS".to_string(), schemas::UpdateFileAddSharedLinkRequest { /* … */ }).await?;
```

## update_file_remove_shared_link

`PUT /files/{file_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `file_id` | path | `String` | yes |
| `fields` | query | `String` | yes |

**Request body** (`application/json`): `UpdateFileRemoveSharedLinkRequest`

**Returns:** `FileFull`

**Example**

```rust
let result = client.shared_links_files.update_file_remove_shared_link("FILE_ID".to_string(), "FIELDS".to_string(), schemas::UpdateFileRemoveSharedLinkRequest { /* … */ }).await?;
```