This endpoint allows users to finalize changing their email address after verifying a confirmation code sent to
POST/v1/settings/change-email-finish
This endpoint allows users to finalize changing their email address after verifying a confirmation code sent to their current email. It checks if the code has expired and if it matches the one stored in the session. Upon successful validation, the user's email is updated in the database, and relevant session data is cleared.
Request
- application/json
Body
required
confirmation_code stringrequired
session_id stringrequired
Responses
- 200
- 403
- 500
Email changed
Code expired or wrong
- text/plain
- Schema
Schema
string
Internal server error
- text/plain
- Schema
Schema
string
Loading...