Clone Scoring Rule
Purpose
To clone a scoring rule in Zoho CRM, to create a new scoring rule based on the existing one.
Endpoints
- POST /settings/automation/scoring_rules/{rule_ID}/actions/clone
Request Details
Request URL
{api-domain}/crm/{version}/settings/automation/scoring_rules/{rule_ID}/actions/clone
Header
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Scope
scope=ZohoCRM.settings.scoring_rules.{operation_type}
Possible operation types
ALL - Full access to scoring rules
CREATE - Create scoring rules
Sample Request
Copiedcurl "https://www.zohoapis.com/crm/v8/settings/automation/scoring_rules/4876876000000965467/actions/clone"
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
-X POSTPossible Errors
- INVALID_REQUEST_METHODHTTP 400The request method is incorrect. 
 Resolution: Use the HTTP POST method to make this API call. Any other request method will result in this error.
- INVALID_DATAHTTP 400The ID given seems to be invalid 
 Resolution: Specify a valid rule ID for cloning.
- LIMIT_EXCEEDEDHTTP 400You have exceeded the maximum number of rules possible for a layout. 
 Resolution: Limit the number of rules to be within the permissible limit. Refer the limits for more details.
- OAUTH_SCOPE_MISMATCHHTTP 401The access token you have used to make this API call does not have the required scope. 
 Resolution: Generate a new access token with the required scopes for this API. Refer to the Scope section at the beginning of this page for the list of required scopes.
- NO_PERMISSIONHTTP 403You do not have permission to clone scoring rules. 
 Resolution: The user does not have permission to clone scoring rules. Contact your system administrator.
- INVALID_URL_PATTERNHTTP 404The request URL is incorrect. 
 Resolution: Specify a valid request URL. Refer to the request URL section at the beginning of this page for more details.
- INTERNAL_ERRORHTTP 500Unexpected and unhandled exception in the server. 
 Resolution: Contact the support team at support@zohocrm.com.
Sample Response
Copied{
    "scoring_rules": [
        {
            "code": "SUCCESS",
            "details": {
                "id": "4876876000000965594"
            },
            "message": "scoring rule cloned successfully",
            "status": "success"
        }
    ]
}