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
<!-- Generated by box-gantry. DO NOT EDIT. -->
# InvitesManager
Reach these methods through the `invites` field on `client::Client`.
## create
`POST /invites`
| Parameter | In | Type | Required |
|---|---|---|---|
| `fields` | query | `Vec<String>` | no |
**Request body** (`application/json`): `InviteCreateRequest`
**Returns:** `Invite`
**Example**
```rust
let result = client.invites.create(schemas::InviteCreateRequest { /* … */ }, None).await?;
```
## get
`GET /invites/{invite_id}`
| Parameter | In | Type | Required |
|---|---|---|---|
| `invite_id` | path | `String` | yes |
| `fields` | query | `Vec<String>` | no |
**Returns:** `Invite`
**Example**
```rust
let result = client.invites.get("INVITE_ID".to_string(), None).await?;
```