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
<!-- Generated by box-gantry. DO NOT EDIT. -->
# TermsOfServicesManager
Reach these methods through the `terms_of_services` field on `client::Client`.
## list
`GET /terms_of_services`
| Parameter | In | Type | Required |
|---|---|---|---|
| `tos_type` | query | `GetTosType` | no |
**Returns:** `TermsOfServices`
**Example**
```rust
let result = client.terms_of_services.list(None).await?;
```
## create
`POST /terms_of_services`
**Request body** (`application/json`): `TermsOfServiceCreateRequest`
**Returns:** `TermsOfService`
**Example**
```rust
let result = client.terms_of_services.create(schemas::TermsOfServiceCreateRequest { /* … */ }).await?;
```
## get
`GET /terms_of_services/{terms_of_service_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `terms_of_service_id` | path | `String` | yes |
**Returns:** `TermsOfService`
**Example**
```rust
let result = client.terms_of_services.get("TERMS_OF_SERVICE_ID".to_string()).await?;
```
## update
`PUT /terms_of_services/{terms_of_service_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `terms_of_service_id` | path | `String` | yes |
**Request body** (`application/json`): `TermsOfServiceUpdateRequest`
**Returns:** `TermsOfService`
**Example**
```rust
let result = client.terms_of_services.update("TERMS_OF_SERVICE_ID".to_string(), schemas::TermsOfServiceUpdateRequest { /* … */ }).await?;
```