PUT - Update Email Address

Purpose

The API is used to update the Email Address of the user. This can be done by the Admin for a user or by the user for himself.

Request URL 

Using Admin Authentication:

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

Using User Authentication:

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

Request Parameters

ParameterData TypeDescription
zuid* Integerzuid - The unique Zoho User Identifier for the organization 
emailAddress* StringemailAddress - The email address to which it has to be updated. 

* - Mandatory parameters

Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String emailupdate

 Updates the email address of the specified account

* - Mandatory parameters

Response Codes

Please refer Response Codes.

Sample Request (Using Admin Authentication)


				{
  "zuid" : "1111111",
  "mode" : "emailupdate",
  "emailAddress" : "rebecca@zylker.com"
}			

Sample Request (Using User Authentication)


				{
  "mode" : "emailupdate",
  "emailAddress" : "rebecca@zylker.com"
}