box-open-sdk 0.3.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. -->
# WebhooksManager

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

## list

`GET /webhooks`

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

**Returns:** `Webhooks`

**Example**

```rust
let mut pages = client.webhooks.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 /webhooks`

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

**Returns:** `Webhook`

**Example**

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

## get

`GET /webhooks/{webhook_id}`

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

**Returns:** `Webhook`

**Example**

```rust
let result = client.webhooks.get("WEBHOOK_ID".to_string()).await?;
```

## update

`PUT /webhooks/{webhook_id}`

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

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

**Returns:** `Webhook`

**Example**

```rust
let result = client.webhooks.update("WEBHOOK_ID".to_string(), schemas::WebhookUpdateRequest { /* … */ }).await?;
```

## delete

`DELETE /webhooks/{webhook_id}`

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

**Returns:** no content

**Example**

```rust
client.webhooks.delete("WEBHOOK_ID".to_string()).await?;
```