PUT - Update Display Name/ Email Address for the user

Purpose

The API is used to Update the Display name and 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:

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

Request Parameters

ParameterData TypeDescription
zuid* Integerzuid - The unique Zoho User Identifier for the organization 
EmailAddress* StringEmail Address - The Email address to be updated as the default email address of the user. 
DisplayName* StringDisplayName - The Name that has to be updated as the Display Name for the Email address provided. 

* - Mandatory parameters

Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String 

displayNameEmailAddressUpdate

 To add the Send Mail Details like Email Address and Display Name for the account

* - Mandatory parameters

Response Codes

Please refer Response Codes.

Sample Request (Using Admin Authentication)


				{
  "zuid" : "1111111",
  "mode" : "displaynameemailupdate",
  "emailAddress" : "rebecca@zylker.com",
  "displayName" : "Rebecca Anderson"
}			

Sample Request (Using User Authentication)


				{
 "mode" : "displaynameemailupdate",
  "emailAddress" : "rebecca@zylker.com",
  "displayName" : "Rebecca Anderson"
}