Update password
Purpose
This API is used to change the password of an existing account.
OAuth Scope
Use the scope
MailApps.accounts.ALL (or) MailApps.accounts.UPDATE
ALL - Full access to the accounts.
UPDATE -To update an existing account password.
To generate Authtoken, refer here.
Request URL
Method: PUT
https://mail360.zoho.com/api/accounts/{account_key}
Path Parameters
- account_key* string
- This key is used to identify the account. It is generated during account addition.
Request Body (JSON object)
- mode* string
- This parameter represents the type of operation that is to be performed.
- Provide the value as updatePassword.
- newPassword* string
- This is the new password that needs to be updated.
* - Mandatory parameter
Sample request
Copiedcurl "https://mail360.zoho.com/api/accounts/N7A**C0CM" \
-X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken ***" \
-d '{
"mode":"updatePassword"
"newPassword":"Rebecca@123"
}'
Sample response
Copied{
"status": {
"code": 200,
"description": "success"
}
}