PUT - Enable User Account
Purpose
The API is used to enable the account of a user in the organization. This can be done by the Admin for a user or by the user for himself.
Admin Authentication:
Scope
orgainzation.accounts
Request URL
https://<hostname>/api/organization/<zoid>/accounts/<accountid>
Using User Authentication:
Scope
accounts
Request URL
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 user whose mail account should be enabled using this API |
* - Mandatory parameters
Request Body (JSON Object)
Parameter | Data Type | Allowed Values | Description |
mode* | String | enableMailAccount | To enable the mail account of a user in the organization. |
password* | String | Password of the Admin Account whose Authtoken is used | Provide the Password of the Admin account whose authtoken is used in the API Keys. |
* - Mandatory parameters
Response Codes
Please refer Response Codes.
Sample Request
Copied{
"zuid": 1111111,
"mode": "enableMailAccount"
}
Sample Request (Using User Authentication)
Copied{
"mode": "enableMailAccount"
}