PUT - Update Mail Account sequence for the user

Purpose

The API is used to update the sequence of Mail Accounts added to the user's account. 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
zuid* Integerzuid - The unique Zoho User Identifier for the organization 
AccList ArrayArray of the list of accountids, in the sequence in which they should be 

* - Mandatory parameters

Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String 

mailaccountorderupdate

To update the order of Mail Accounts in the account to the required order

* - Mandatory parameters

Response Codes

Please refer Response Codes.

Sample Request (Using Admin Authentication)


				{
   "zuid": "1111111",
   "mode": "mailaccountorderupdate",
   "accList": "5111110000000008001,5111110000000009001"
}			

Sample Request Using User Authentication)


				{
  "mode" : "mailaccountorderupdate",
  "accList" : "5111110000000008001,5111110000000009001"
}