PUT - Add/ Update Organization Spam Listing Info

 Purpose

The API adds or updates the Organization's Spam Listing Info. The type of listing can be Organization Whitelist/ Blacklist Domains or Email Addresses.  

 Request URL 

 http://mail.zoho.com/api/organization/<zoid>

 Request Parameters

ParameterData TypeDescription
zoid*Integerzoid - The unique Zoho Organization Identifier for the organization 

* - Mandatory parameters

  Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
mode* String 

 addSpamCategory

 To add the Spam Listing Details to the Organization Whitelist/ Blacklist Domains and Email Addresses. 

zoid* Integer zoid of the Organization

 Provide the Organization ID for which the Spam Process Type should be updated

SpamVO* Container Object   Array containing the type of the List added and the Value of Domains/ Email address based on type. 
type* String blackListEmail
 blackListDomain
 whiteListEmail
 whiteListDomain
 Type of the Whitelist/ Blacklist to be added here. 
Value* Array of Strings

 ["value1", "Value2, ..]  

 The actual value of the Domains or Email Addresses to be added to the type specified, should be provided here. 

* - Mandatory parameters

 Response Codes

Please refer Response Codes.

Sample Request


				{
   "zoid": 556335,
   "mode": "addSpamCategory",
   "spamVO": {
      "spamCategory": "whiteListEmail",
      "whiteListEmail": [
         "contact1@clientdomain.com",
         "contact2@myclient.com"
      ]
   }
}