Step 3 — Source Items
Update Session Email
Update the student’s email in both the Redis session and the database.
POST
Used when the email needs to be corrected or set after the session was initiated.
No authentication required for this endpoint.
Request Body
The session token returned from
POST /verify.The new email address. Must be a valid email format.
Error Codes
| Code | HTTP | Description |
|---|---|---|
MISSING_DATA | 400 | sessionToken or email is missing |
INVALID_EMAIL | 400 | Email does not match a valid format |
SESSION_NOT_FOUND | 404 | Session is expired or not found |
INTERNAL_ERROR | 500 | Unexpected server error |

