PUT - Remove Organization Spam Listing Info
Purpose
The API removes 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>/spam
Request Parameters
Parameter | Data Type | Description |
zoid* | Integer | zoid - The unique Zoho Organization Identifier for the organization |
* - Mandatory parameters
Request Body (JSON Object)
Parameter | Data Type | Allowed Values | Description |
mode* | String | removeSpamCategory | To remove 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
The below request removes the domains specified in the Value array from the Whitelist Domain List of the organization.
{
"zoid": 556335,
"mode": "removeSpamCategory",
"spamVO": {
"spamCategory": "whiteListDomain",
"whiteListDomain": [
"someolddomain.com",
"wrongdomain.com"
]
}
}