> ## 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: Variables Post Variables

> Create organization variables in Zoho CRM for use in workflows and functions. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Create organization variables in Zoho CRM for use in workflows and functions.

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

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

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
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 returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

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

Use `deepline describe 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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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](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.