> ## 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 Post Scoring Rules

> Create scoring rules in Zoho CRM that add or subtract points for record fields and signals. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Create scoring rules in Zoho CRM that add or subtract points for record fields and signals.

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

## 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_post_scoring_rules',
  {
    "scoring_rules": [
      {}
    ]
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute zoho_crm_scoring_rules_post_scoring_rules --input '{
  "scoring_rules": [
    {}
  ]
}' --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_post_scoring_rules --json` for the latest machine-readable contract.

## Input reference

Schema for creating scoring rules, containing an array of scoring rule definitions.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.scoring_rules` | `array` | Yes | — | root element (Required) Minimum items: 1. Maximum items: 20. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Schema for creating scoring rules, containing an array of scoring rule definitions.",
    "properties": {
      "scoring_rules": {
        "type": "array",
        "description": "root element (Required)",
        "minItems": 1,
        "maxItems": 20,
        "items": {
          "type": "object",
          "description": "Schema for creating a scoring rule, supporting both manual and Zia scoring types.",
          "additionalProperties": true
        }
      }
    },
    "required": [
      "scoring_rules"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Successful creation response for scoring rules, containing details of the created rules. |
| `result.data.scoring_rules` | `array` | No | — | Field: scoring\_rules Maximum items: 20. |
| `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 creation response for scoring rules, containing details of the created rules.",
        "properties": {
          "scoring_rules": {
            "type": "array",
            "description": "Field: scoring_rules",
            "maxItems": 20,
            "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.