|
| 1 | +patch: |
| 2 | + operationId: updateMembershipInvitation |
| 3 | + summary: Update a pending membership invitation |
| 4 | + description: | |
| 5 | + Allows namespace administrators to update a pending membership invitation. |
| 6 | + Currently supports updating the role assigned to the invitation. |
| 7 | + The active user must have authority over the role being assigned. |
| 8 | + tags: |
| 9 | + - cloud |
| 10 | + - members |
| 11 | + - namespaces |
| 12 | + security: |
| 13 | + - jwt: [] |
| 14 | + parameters: |
| 15 | + - $ref: ../components/parameters/path/namespaceTenantIDPath.yaml |
| 16 | + - name: user-id |
| 17 | + description: The ID of the invited user |
| 18 | + schema: |
| 19 | + type: string |
| 20 | + required: true |
| 21 | + in: path |
| 22 | + requestBody: |
| 23 | + content: |
| 24 | + application/json: |
| 25 | + schema: |
| 26 | + type: object |
| 27 | + properties: |
| 28 | + role: |
| 29 | + $ref: ../components/schemas/namespaceMemberRole.yaml |
| 30 | + responses: |
| 31 | + '200': |
| 32 | + description: Invitation successfully updated |
| 33 | + '400': |
| 34 | + $ref: ../components/responses/400.yaml |
| 35 | + '401': |
| 36 | + $ref: ../components/responses/401.yaml |
| 37 | + '403': |
| 38 | + $ref: ../components/responses/403.yaml |
| 39 | + '404': |
| 40 | + $ref: ../components/responses/404.yaml |
| 41 | + '500': |
| 42 | + $ref: ../components/responses/500.yaml |
| 43 | + |
| 44 | +delete: |
| 45 | + operationId: cancelMembershipInvitation |
| 46 | + summary: Cancel a pending membership invitation |
| 47 | + description: | |
| 48 | + Allows namespace administrators to cancel a pending membership invitation. |
| 49 | + The invitation status will be updated to "cancelled". |
| 50 | + The active user must have authority over the role of the invitation being cancelled. |
| 51 | + tags: |
| 52 | + - cloud |
| 53 | + - members |
| 54 | + - namespaces |
| 55 | + security: |
| 56 | + - jwt: [] |
| 57 | + parameters: |
| 58 | + - $ref: ../components/parameters/path/namespaceTenantIDPath.yaml |
| 59 | + - name: user-id |
| 60 | + description: The ID of the invited user |
| 61 | + schema: |
| 62 | + type: string |
| 63 | + required: true |
| 64 | + in: path |
| 65 | + responses: |
| 66 | + '200': |
| 67 | + description: Invitation successfully cancelled |
| 68 | + '400': |
| 69 | + $ref: ../components/responses/400.yaml |
| 70 | + '401': |
| 71 | + $ref: ../components/responses/401.yaml |
| 72 | + '403': |
| 73 | + $ref: ../components/responses/403.yaml |
| 74 | + '404': |
| 75 | + $ref: ../components/responses/404.yaml |
| 76 | + '500': |
| 77 | + $ref: ../components/responses/500.yaml |
0 commit comments