> ## 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: README

> POST /settings/automation/scoring_rules. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

POST /settings/automation/scoring\_rules.

<Info>
  Tool ID: `zoho_crm_scoring_rules_post_scoring_rules`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
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={null}
deepline tools execute zoho_crm_scoring_rules_post_scoring_rules --input '{
  "scoring_rules": [
    {}
  ]
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "scoring_rules": [
      {
        "code": "example",
        "details": {
          "id": "id_123"
        },
        "message": "Example message"
      }
    ]
  }
}
```

Use `deepline tools get 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={null}
  {
    "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={null}
  {
    "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](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
