1 post:
2 operationId: PostInvitesIdResend
3 summary: Refresh Invite Token
4 description: Refresh the token of an invite.
5 x-authenticated: true
6 parameters:
7 - name: id
8 in: path
9 description: The invite's ID.
10 required: true
11 schema:
12 type: string
13 - name: fields
14 in: query
15 description: >-
16 Comma-separated fields that should be included in the returned data. if
17 a field is prefixed with `+` it will be added to the default fields,
18 using `-` will remove it from the default fields. without prefix it will
19 replace the entire default fields.
20 required: false
21 schema:
22 type: string
23 title: fields
24 description: >-
25 Comma-separated fields that should be included in the returned data.
26 if a field is prefixed with `+` it will be added to the default
27 fields, using `-` will remove it from the default fields. without
28 prefix it will replace the entire default fields.
29 externalDocs:
30 url: '#select-fields-and-relations'
31 x-codeSamples:
32 - lang: JavaScript
33 label: JS SDK
34 source:
35 $ref: ../code_samples/JavaScript/admin_invites_{id}_resend/post.js
36 - lang: Shell
37 label: cURL
38 source:
39 $ref: ../code_samples/Shell/admin_invites_{id}_resend/post.sh
40 tags:
41 - Invites
42 responses:
43 '200':
44 description: OK
45 content:
46 application/json:
47 schema:
48 $ref: ../components/schemas/AdminInviteResponse.yaml
49 '400':
50 $ref: ../components/responses/400_error.yaml
51 '401':
52 $ref: ../components/responses/unauthorized.yaml
53 '404':
54 $ref: ../components/responses/not_found_error.yaml
55 '409':
56 $ref: ../components/responses/invalid_state_error.yaml
57 '422':
58 $ref: ../components/responses/invalid_request_error.yaml
59 '500':
60 $ref: ../components/responses/500_error.yaml
61 x-workflow: refreshInviteTokensWorkflow
62 security:
63 - api_token: []
64 - cookie_auth: []
65 - jwt_token: []
66 x-events:
67 - name: invite.resent
68 payload: |-
69 ```ts
70 {
71 id, // The ID of the invite
72 }
73 ```
74 description: >-
75 Emitted when invites should be resent because their token was
76
77 refreshed. You can listen to this event to send an email to the invited
78 users,
79
80 for example.
81 deprecated: false