Assign Account Restriction to Policy
Purpose
This API is used to assign a specific account restriction to a particular policy.
OAuth Scope
Use the scope
ZohoMail.organization.policy.ALL (or) ZohoMail.organization.policy.UPDATE
to generate the Authtoken.
ALL - Provides full access to policy.
UPDATE - Assign an account restriction to a policy.
Request URL
Method: PUT
https://mail.zoho.com/api/organization/{zoid}/policy/{policyId}
Path Parameters
- zoid* long
- This parameter denotes the unique Zoho Organization Identifier for the organization.
- This parameter can be retrieved from the Get Organization Details API.
- policyId* long
- This parameter is the unique identifier for the policy.
- This parameter can be retrieved from the Get All Policies API.
Request Body (JSON Object)
- mode* string
- This parameter specifies the type of operation that is to be performed.
- Provide the value as changeAccountRestrictionID.
- orgMailRestrictionID* long
- This parameter is the unique identifier assigned to an account restriction.
- This parameter can be retrieved from the Get All Account Restrictions API.
* - Mandatory parameter
Response Codes
Refer here for the response codes and their meaning.
Sample Request
Copied
Sample Response
Copied