PUT - Disable User Account

 Purpose

The API is used to disable the POP account of a user in the organization. This can be done by the Admin for a user or by the user for himself.

 Request URL 

Using Admin Authentication

https://<hostname>/api/organization/<zoid>/accounts/<accountid>

Using User Authentication

https://<hostname>/api/accounts/<accountid>

 Request Parameters

ParameterData TypeDescription
zoid* Integerzoid - The unique Zoho Organization Identifier for the organization 
accountid* Integer Account Id of the POP account you wish to disable

* - Mandatory parameters

  Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String disableMailAccountTo disable a user account in the organization.

* - Mandatory parameters

 Response Codes

Please refer Response Codes.

Sample Request (Using Admin Authentication)


				{
   "zuid": 1111111,
   "mode": "disableMailAccount"
}			

Sample Request (Using User Authentication)


				{
  "mode" : "disableMailAccount"
}