> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Zoho CRM: Scoring Rules Delete Activate

> Deactivate a Zoho CRM lead or record scoring rule. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Deactivate a Zoho CRM lead or record scoring rule.

> [!NOTE]
>
> Tool ID: `zoho_crm_scoring_rules_delete_activate`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_scoring_rules_delete_activate',
  {
    "ruleId": "rule_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoho_crm_scoring_rules_delete_activate --input '{
  "ruleId": "rule_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "scoring_rules": [
      {
        "code": "example",
        "details": {
          "id": "id_123"
        },
        "message": "Example message"
      }
    ]
  }
}
```

Use `deepline describe zoho_crm_scoring_rules_delete_activate --json` for the latest machine-readable contract.

## Input reference

To deactivate a scoring rule

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.ruleId` | `string` | Yes | — | Path parameter: ruleId Maximum length: 20. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "To deactivate a scoring rule",
    "properties": {
      "ruleId": {
        "type": "string",
        "description": "Path parameter: ruleId",
        "maxLength": 20
      }
    },
    "required": [
      "ruleId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Successful deactivation of a rule |
| `result.data.scoring_rules` | `array` | No | — | Field: scoring\_rules Maximum items: 1. |
| `result.data.scoring_rules[].code` | `string` | No | — | Field: code Maximum length: 255. |
| `result.data.scoring_rules[].details` | `object` | No | — | Details of an operation, including the identifier of affected fields. |
| `result.data.scoring_rules[].details.unsaved_custom_fields` | `array` | No | — | Field: unsaved\_custom\_fields Maximum items: 6. |
| `result.data.scoring_rules[].details.unsaved_custom_fields[].field_label` | `string` | No | — | Field: field\_label Maximum length: 50. |
| `result.data.scoring_rules[].details.id` | `string` | No | — | Field: id Maximum length: 25. |
| `result.data.scoring_rules[].message` | `string` | No | — | Field: message Maximum length: 255. |
| `result.data.scoring_rules[].status` | `string` | No | — | Field: status Maximum length: 255. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Successful deactivation of a rule",
        "properties": {
          "scoring_rules": {
            "type": "array",
            "description": "Field: scoring_rules",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Response details for scoring rule operations, including status, code, and associated messages.",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Field: code",
                  "maxLength": 255
                },
                "details": {
                  "type": "object",
                  "description": "Details of an operation, including the identifier of affected fields.",
                  "properties": {
                    "unsaved_custom_fields": {
                      "type": "array",
                      "description": "Field: unsaved_custom_fields",
                      "maxItems": 6,
                      "items": {
                        "type": "object",
                        "description": "Contains detailed information about custom fields that could not be saved during an operation.",
                        "properties": {
                          "field_label": {
                            "type": "string",
                            "description": "Field: field_label",
                            "maxLength": 50
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "id": {
                      "type": "string",
                      "description": "Field: id",
                      "maxLength": 25
                    }
                  },
                  "additionalProperties": true
                },
                "message": {
                  "type": "string",
                  "description": "Field: message",
                  "maxLength": 255
                },
                "status": {
                  "type": "string",
                  "description": "Field: status",
                  "maxLength": 255
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.