> ## 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/variables. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

POST /settings/variables.

<Info>
  Tool ID: `zoho_crm_variables_post_variables`
</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_variables_post_variables',
  {
    "variables": [
      {
        "api_name": "Example",
        "name": "Example",
        "type": "text",
        "variable_group": {
          "id": "id_123"
        }
      }
    ]
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_variables_post_variables --input '{
  "variables": [
    {
      "api_name": "Example",
      "name": "Example",
      "type": "text",
      "variable_group": {
        "id": "id_123"
      }
    }
  ]
}' --json
```

## Example response

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

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

Use `deepline tools get zoho_crm_variables_post_variables --json` for the latest machine-readable contract.

## Input reference

Request body wrapper that carries an array of variable definitions to be processed in a single batch.

| Name                | Type    | Required | Default | Details                                               |
| ------------------- | ------- | -------- | ------- | ----------------------------------------------------- |
| `payload.variables` | `array` | Yes      | —       | this shows the jsonarray (Required) Maximum items: 2. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body wrapper that carries an array of variable definitions to be processed in a single batch.",
    "properties": {
      "variables": {
        "type": "array",
        "description": "this shows the jsonarray (Required)",
        "maxItems": 2,
        "items": {
          "type": "object",
          "description": "Represents a variable to create, including api_name, name, optional description, data type (text, integer, boolean, date, float), initial value, and the target variable_group reference.",
          "properties": {
            "api_name": {
              "type": "string",
              "description": "this shows the api name of the variables (Required)",
              "maxLength": 100,
              "pattern": "^[a-zA-Z]+\\w*[a-zA-Z0-9]*$"
            },
            "name": {
              "type": "string",
              "description": "It shows name of the variables (Required)",
              "maxLength": 50
            },
            "description": {
              "type": [
                "string",
                "null"
              ],
              "description": "description of the variables",
              "maxLength": 250
            },
            "type": {
              "type": "string",
              "description": "Type of the variables (Required)",
              "maxLength": 7,
              "enum": [
                "text",
                "integer",
                "boolean",
                "date",
                "float"
              ]
            },
            "variable_group": {
              "type": "object",
              "description": "Nested object that identifies the variable group when defining a variable. Includes the group's id (required) and rid (UUID) if available.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "id of variable groups (Required)",
                  "maxLength": 21
                },
                "rid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "uuid for variable groups",
                  "maxLength": 36
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            },
            "value": {
              "type": [
                "integer",
                "null"
              ],
              "description": "Initial value of variable",
              "format": "int32"
            }
          },
          "required": [
            "api_name",
            "name",
            "type",
            "variable_group"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "variables"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                        | Type     | Required | Default | Details                                                                                                                           |
| ------------------------------------------- | -------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `result.data`                               | `object` | Yes      | —       | Summary response for a batch variables operation where all items are created successfully. Includes an array of per-item results. |
| `result.data.variables`                     | `array`  | No       | —       | Field: variables Maximum items: 5.                                                                                                |
| `result.data.variables[].code`              | `string` | No       | —       | Field: code Maximum length: 255.                                                                                                  |
| `result.data.variables[].details`           | `object` | No       | —       | Details of an individual variable operation result, including the id of the affected variable.                                    |
| `result.data.variables[].details.id`        | `string` | No       | —       | Field: id Maximum length: 255.                                                                                                    |
| `result.data.variables[].details.rid`       | `string` | No       | —       | Field: rid Maximum length: 255.                                                                                                   |
| `result.data.variables[].details.api_name`  | `string` | No       | —       | Field: api\_name Maximum length: 255.                                                                                             |
| `result.data.variables[].details.json_path` | `string` | No       | —       | Detail field: json\_path Maximum length: 255.                                                                                     |
| `result.data.variables[].message`           | `string` | No       | —       | Field: message Maximum length: 255.                                                                                               |
| `result.data.variables[].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": "Summary response for a batch variables operation where all items are created successfully. Includes an array of per-item results.",
        "properties": {
          "variables": {
            "type": "array",
            "description": "Field: variables",
            "maxItems": 5,
            "items": {
              "type": "object",
              "description": "Per-item outcome for a variable operation, including code, message, status, and details such as the resulting variable id.",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Field: code",
                  "maxLength": 255
                },
                "details": {
                  "type": "object",
                  "description": "Details of an individual variable operation result, including the id of the affected variable.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Field: id",
                      "maxLength": 255
                    },
                    "rid": {
                      "type": "string",
                      "description": "Field: rid",
                      "maxLength": 255
                    },
                    "api_name": {
                      "type": "string",
                      "description": "Field: api_name",
                      "maxLength": 255
                    },
                    "json_path": {
                      "type": "string",
                      "description": "Detail field: json_path",
                      "maxLength": 255
                    }
                  },
                  "additionalProperties": false
                },
                "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)
