-
Notifications
You must be signed in to change notification settings - Fork 0
PATCH email
Calculus edited this page Mar 21, 2026
·
2 revisions
Change user email.
Note
Requires user password in body for authentication to prevent account theft.
Authorization: Bearer <token>Content-Type: application/json
{
"email": "string",
"password": "string"
}PATCH /user/email
Authorization: Bearer <token>
Content-Type: application/json
{
"email": "new@email.ca",
"password": "notapassword"
}{
"message": "Email changed successfully.",
"status": 200
}-
400 Bad RequestInvalid email or password -
401 UnauthorizedAuthentication failed -
500 Internal Server ErrorSomething went wrong on the server
Base URL: https://frhd.zengin.workers.dev/api