PUT - Change Incoming Status for a User
Purpose
The API is used to change the incoming status of a user from enabled to disabled or vice-versa.
OAuth Scope
Use the scope
ZohoMail.organization.accounts.ALL (or) ZohoMail.organization.accounts.UPDATE
to generate the Authtoken.
ALL - Grants full access to accounts.
UPDATE - Grants access to update account information.
Request URL
Method: PUT
Using admin authentication:
https://mail.zoho.com/api/organization/{zoid}/accounts/{accountId}
Path Parameters
- zoid* long
- This parameter denotes the unique Zoho Organization Identifier for the organization.
 - This value can be retrieved using the GET Organization Details API.
 
 - accountId* long
- This parameter is the unique mail account identifier for which the status has to be changed to enable. A user can have multiple accounts, and each account has a unique ID, if external POP/IMAP has been added to the account.
 - This parameter can be retrieved from the GET all org user details API
 
 
Request Body (JSON Object)
- zuid* long
- This parameter denotes the unique identifier for each user in an organization.
 - This value can be retrieved using the GET all org user details API.
 
 - mode* string
- This parameter represents the type of operation that is to be performed.
 - Provide the value as updateIncomingStatus.
 
 - incomingBlocked* boolean
- This parameter specifies whether incoming messages are blocked for the user.
 - Allowed values:
- true - Block incoming messages.
 - false - Does not block incoming messages.
 
 
 
* - Mandatory parameter
Response Codes
Refer here for the response codes and their meaning.
Sample Request
Copiedcurl "https://mail.zoho.com/api/organization/12345678/accounts/2560636000000008002" \
-X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Zoho-oauthtoken ***" \
-d '{
   "zuid": 899999000,
   "mode": "updateIncomingStatus",
   "incomingBlocked": "true"
}'Sample Response
Copied{
  "status": {
    "code": 200,
    "description": "success"
  }
}