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
Parameter | Data Type | Description |
zoid* | Integer | zoid - 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)
Parameter | Data Type | Allowed Values | Description |
mode* | String | disableMailAccount | To disable a user account in the organization. |
* - Mandatory parameters
Response Codes
Please refer Response Codes.
Sample Request
Copied{
"zuid": 1111111,
"mode": "disableMailAccount"
}
Sample Request (Using User Authentication)
Copied{
"mode" : "disableMailAccount"
}