Change account email
This interface is used to change user's login email.
Change account email
POST /change-email
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Required
Description
customer_id
string
The unique Marco identifier for your company.
old_email
string
User's email before changing
new_email
string
User's email after changing
Parameter Example
{
"customer_id": "1",
"old_email": "[email protected]",
"new_email": "[email protected]"
}Response
{
"message": "Update Successfully"
}{
"error": "Invalid request"
}
//if the new email has been used, the result as below.
{
"code": "ERROR_FATAL",
"message": "New email has been used.",
"payload": ""
}
//if the auth user don't have access to change user's account email, the result as below
{
"message": "Access Denied"
}Last updated