Disable an account

Purpose 

This API is used to disable an existing account.

OAuth Scope

Use the scope

MailApps.accounts.ALL (or) MailApps.accounts.UPDATE

ALL - Full access to the accounts.

UPDATE -To disable an existing account.

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 disableAccount.

 

* - 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":"disableAccount"
}'

Sample response

Copied{
  "status": {
    "code": 200,
    "description": "success"
  }
}