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.

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 user whose mail account should be enabled using this API

* - Mandatory parameters

Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
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 (Using Admin Authentication)


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

Sample Request (Using User Authentication)


				{
   "mode": "enableMailAccount"
}