Update user email
PUT
Change the current user email by providing current password and new email
header
X-API-Key<token>API key authentication using X-API-Key header
Change the current admin email address
application/json- body
Change the current admin email address
currentPassword*stringCurrent password for verification
Length
8 <= lengthnewEmail*stringNew email address to set
Match
^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Format
emailDefault Response
application/json- response
Standard success message response
message*stringHuman-readable result message
curl -X PUT 'http://localhost:3003/v1/users/update-email' \ -H 'Content-Type: application/json' \ -d '{ "currentPassword": "stringst", "newEmail": "user@example.com"}'Example Response
{ "message": "string"}