Delete Scoring Rules
Purpose
To delete scoring rules configured for different modules in Zoho CRM.
Endpoints
- DELETE /settings/automation/scoring_rules/{rule_ID}
- DELETE /settings/automation/scoring_rules?ids=rule_ID1, rule_ID2, rule_ID3, ...
Request Details
Request URL
{api-domain}/crm/{version}/settings/automation/scoring_rules/{rule_ID}
To delete multiple scoring rules:
{api-domain}/crm/{version}/settings/automation/scoring_rules?ids = rule_ID1, rule_ID2,...
Header
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Scope
ZohoCRM.settings.scoring_rules.{operation_type}
Possible operation types
ALL - Full access to scoring rules
DELETE - Delete scoring rules
Parameters
- idsstring, mandatory when deleting more than one scoring ruleUnique IDs of the scoring rules to be deleted, comma separated. 
Note
When a scoring rule is deleted, any custom fields associated with that rule will also be deleted.
Sample Request
Copiedcurl "https://www.zohoapis.com/crm/v8/settings/automation/scoring_rules?ids=4876876000000965489,4876876000000965499,4876876000000965509"
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
-X DELETEPossible Errors
- INVALID_REQUEST_METHODHTTP 400The request method is incorrect. 
 Resolution: Use the HTTP DELETE method to make this API call. Any other request method will result in this error.
- INVALID_DATAHTTP 400Scoring Rule ID seems to be invalid 
 Resolution: Please specify a valid rule ID.
- 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 create scoring rules. 
 Resolution: The user does not have permission to delete scoring rules data. 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: Unexpected and unhandled exception in the server.
Sample Response
Copied{
    "scoring_rules": [
        {
            "code": "SUCCESS",
            "details": {
                "id": "4876876000000965489"
            },
            "message": "scoring rule deleted successfully",
            "status": "success"
        },
        {
            "code": "SUCCESS",
            "details": {
                "id": "4876876000000965499"
            },
            "message": "scoring rule deleted successfully",
            "status": "success"
        },
        {
            "code": "SUCCESS",
            "details": {
                "id": "4876876000000965509"
            },
            "message": "scoring rule deleted successfully",
            "status": "success"
        }
    ]
}