onasty/api/paths/auth/change-email.yml (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com api: add openapi docs (#181)..., 9 months ago
olexsmir@gmail.com api: add openapi docs (#181)..., 9 months ago
| 1 | post: |
| 2 | tags: [Account] |
| 3 | summary: Change email (sends a confirmation email) |
| 4 | security: |
| 5 | - Bearer: [] |
| 6 | |
| 7 | requestBody: |
| 8 | required: true |
| 9 | content: |
| 10 | application/json: |
| 11 | schema: |
| 12 | $ref: '../../components/requests/ChangeEmail.yml' |
| 13 | |
| 14 | responses: |
| 15 | '200': |
| 16 | description: Successfully send the email |
| 17 | '401': |
| 18 | description: Unauthorized |
| 19 | '400': |
| 20 | $ref: '../../components/responses/ErrorResponse.yml' |
| 21 | '404': |
| 22 | $ref: '../../components/responses/UserNotFound.yml' |
| 23 | '500': |
| 24 | $ref: '../../components/responses/ErrorResponse.yml' |