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
60
61
62
63
64
65
66
67
68
69
70
<!-- Generated by box-gantry. DO NOT EDIT. -->
# WebLinksManager
Reach these methods through the `web_links` field on `client::Client`.
## create
`POST /web_links`
**Request body** (`application/json`): `WebLinkCreateRequest`
**Returns:** `WebLink`
**Example**
```rust
let result = client.web_links.create(schemas::WebLinkCreateRequest { /* … */ }).await?;
```
## get
`GET /web_links/{web_link_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `web_link_id` | path | `String` | yes |
| `boxapi` | header | `String` | no |
**Returns:** `WebLink`
**Example**
```rust
let result = client.web_links.get("WEB_LINK_ID".to_string(), None).await?;
```
## update
`PUT /web_links/{web_link_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `web_link_id` | path | `String` | yes |
**Request body** (`application/json`): `WebLinkUpdateRequest`
**Returns:** `WebLink`
**Example**
```rust
let result = client.web_links.update("WEB_LINK_ID".to_string(), schemas::WebLinkUpdateRequest { /* … */ }).await?;
```
## delete
`DELETE /web_links/{web_link_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `web_link_id` | path | `String` | yes |
**Returns:** no content
**Example**
```rust
client.web_links.delete("WEB_LINK_ID".to_string()).await?;
```