box-open-sdk 0.3.0

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. -->
# ArchivesManager

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

## list

`GET /archives`

| Parameter | In | Type | Required |
|---|---|---|---|
| `limit` | query | `i64` | no |
| `marker` | query | `String` | no |

**Returns:** `Archives`

**Example**

```rust
let mut pages = client.archives.list(None);
while let Some(item) = pages.next().await {
    // use item
}
```

Paginated — `list(...)` returns a paginator you drive with `.next().await`, threading the cursor for you. See the [pagination guide](../pagination.md).

## create

`POST /archives`

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

**Returns:** `Archive`

**Example**

```rust
let result = client.archives.create(schemas::ArchiveCreateRequest { /* … */ }).await?;
```

## update

`PUT /archives/{archive_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `archive_id` | path | `String` | yes |

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

**Returns:** `Archive`

**Example**

```rust
let result = client.archives.update("ARCHIVE_ID".to_string(), schemas::ArchiveUpdateRequest { /* … */ }).await?;
```

## delete

`DELETE /archives/{archive_id}`

| Parameter | In | Type | Required |
|---|---|---|---|
| `archive_id` | path | `String` | yes |

**Returns:** no content

**Example**

```rust
client.archives.delete("ARCHIVE_ID".to_string()).await?;
```