|
1
|
get: |
|
2
|
operationId: GetInvitesId |
|
3
|
summary: Get an Invite |
|
4
|
description: >- |
|
5
|
Retrieve an invite by its ID. You can expand the invite's relations or |
|
6
|
select the fields that should be returned. |
|
7
|
x-authenticated: true |
|
8
|
parameters: |
|
9
|
- name: id |
|
10
|
in: path |
|
11
|
description: The invite's ID. |
|
12
|
required: true |
|
13
|
schema: |
|
14
|
type: string |
|
15
|
- name: fields |
|
16
|
in: query |
|
17
|
description: >- |
|
18
|
Comma-separated fields that should be included in the returned data. if |
|
19
|
a field is prefixed with `+` it will be added to the default fields, |
|
20
|
using `-` will remove it from the default fields. without prefix it will |
|
21
|
replace the entire default fields. |
|
22
|
required: false |
|
23
|
schema: |
|
24
|
type: string |
|
25
|
title: fields |
|
26
|
description: >- |
|
27
|
Comma-separated fields that should be included in the returned data. |
|
28
|
if a field is prefixed with `+` it will be added to the default |
|
29
|
fields, using `-` will remove it from the default fields. without |
|
30
|
prefix it will replace the entire default fields. |
|
31
|
externalDocs: |
|
32
|
url: '#select-fields-and-relations' |
|
33
|
x-codeSamples: |
|
34
|
- lang: JavaScript |
|
35
|
label: JS SDK |
|
36
|
source: |
|
37
|
$ref: ../code_samples/JavaScript/admin_invites_{id}/get.js |
|
38
|
- lang: Shell |
|
39
|
label: cURL |
|
40
|
source: |
|
41
|
$ref: ../code_samples/Shell/admin_invites_{id}/get.sh |
|
42
|
tags: |
|
43
|
- Invites |
|
44
|
responses: |
|
45
|
'200': |
|
46
|
description: OK |
|
47
|
content: |
|
48
|
application/json: |
|
49
|
schema: |
|
50
|
$ref: ../components/schemas/AdminInviteResponse.yaml |
|
51
|
'400': |
|
52
|
$ref: ../components/responses/400_error.yaml |
|
53
|
'401': |
|
54
|
$ref: ../components/responses/unauthorized.yaml |
|
55
|
'404': |
|
56
|
$ref: ../components/responses/not_found_error.yaml |
|
57
|
'409': |
|
58
|
$ref: ../components/responses/invalid_state_error.yaml |
|
59
|
'422': |
|
60
|
$ref: ../components/responses/invalid_request_error.yaml |
|
61
|
'500': |
|
62
|
$ref: ../components/responses/500_error.yaml |
|
63
|
security: |
|
64
|
- api_token: [] |
|
65
|
- cookie_auth: [] |
|
66
|
- jwt_token: [] |
|
67
|
delete: |
|
68
|
operationId: DeleteInvitesId |
|
69
|
summary: Delete Invite |
|
70
|
description: Delete an invite. |
|
71
|
x-authenticated: true |
|
72
|
parameters: |
|
73
|
- name: id |
|
74
|
in: path |
|
75
|
description: The invite's ID. |
|
76
|
required: true |
|
77
|
schema: |
|
78
|
type: string |
|
79
|
x-codeSamples: |
|
80
|
- lang: JavaScript |
|
81
|
label: JS SDK |
|
82
|
source: |
|
83
|
$ref: ../code_samples/JavaScript/admin_invites_{id}/delete.js |
|
84
|
- lang: Shell |
|
85
|
label: cURL |
|
86
|
source: |
|
87
|
$ref: ../code_samples/Shell/admin_invites_{id}/delete.sh |
|
88
|
tags: |
|
89
|
- Invites |
|
90
|
responses: |
|
91
|
'200': |
|
92
|
description: OK |
|
93
|
content: |
|
94
|
application/json: |
|
95
|
schema: |
|
96
|
type: object |
|
97
|
description: The deletion's details. |
|
98
|
required: |
|
99
|
- id |
|
100
|
- object |
|
101
|
- deleted |
|
102
|
properties: |
|
103
|
id: |
|
104
|
type: string |
|
105
|
title: id |
|
106
|
description: The invite's ID. |
|
107
|
object: |
|
108
|
type: string |
|
109
|
title: object |
|
110
|
description: The name of the deleted object. |
|
111
|
default: invite |
|
112
|
deleted: |
|
113
|
type: boolean |
|
114
|
title: deleted |
|
115
|
description: Whether the invite was deleted. |
|
116
|
'400': |
|
117
|
$ref: ../components/responses/400_error.yaml |
|
118
|
'401': |
|
119
|
$ref: ../components/responses/unauthorized.yaml |
|
120
|
'404': |
|
121
|
$ref: ../components/responses/not_found_error.yaml |
|
122
|
'409': |
|
123
|
$ref: ../components/responses/invalid_state_error.yaml |
|
124
|
'422': |
|
125
|
$ref: ../components/responses/invalid_request_error.yaml |
|
126
|
'500': |
|
127
|
$ref: ../components/responses/500_error.yaml |
|
128
|
x-workflow: deleteInvitesWorkflow |
|
129
|
security: |
|
130
|
- api_token: [] |
|
131
|
- cookie_auth: [] |
|
132
|
- jwt_token: [] |
|
133
|
x-events: |
|
134
|
- name: invite.deleted |
|
135
|
payload: |- |
|
136
|
```ts |
|
137
|
{ |
|
138
|
id, // The ID of the invite |
|
139
|
} |
|
140
|
``` |
|
141
|
description: Emitted when invites are deleted. |
|
142
|
deprecated: false |