Skip to content

Zoho: Variables schemas

28 Zoho schemas with complete fields and constraints.

← Variables operations · All schemas

Create variables — request body — body

FieldTypePresenceDescription and constraints
$objectRootRequest body wrapper that carries an array of variable definitions to be processed in a single batch.
Additional keys: not allowed
variablesarrayRequired within parentArray of variable definitions to create. Maximum: 25 items.
Maximum items: 2
variables[]ModelEach itemExpand Create variables — request body — body variables item

Referenced models: Create variables — request body — body variables item

Create variables — request body — body variables item

FieldTypePresenceDescription and constraints
$objectRootRepresents 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.
Additional keys: not allowed
api_namestringRequired within parentSpecify the API name of the variables.
Maximum length: 100
Pattern: ^[a-zA-Z]+\w*[a-zA-Z0-9]*$
descriptionstring or nullOptionalSpecify the description of the variables.
Maximum length: 250
namestringRequired within parentSpecify the name of the variables.
Maximum length: 50
typestringRequired within parentSpecify the type of the variables
One of: text, integer, boolean, date, float
Maximum length: 7
valueinteger or nullOptionalInitial value of variable
Format: int32
variable_groupModelRequired within parentExpand Create variables — request body — body variables item variable group
Variable Groups json object (Required)

Referenced models: Create variables — request body — body variables item variable group

Create variables — request body — body variables item variable group

FieldTypePresenceDescription and constraints
$objectRootNested object that identifies the variable group when defining a variable. Includes the group's id (required).
Additional keys: not allowed
idstringRequired within parentThe unique ID of the variable group. Mandatory.
Format: int64

Create variables — response body — variables — Variables Batch Operation Created

FieldTypePresenceDescription and constraints
$objectRootSummary response for a batch variables operation where all items are created successfully. Includes an array of per-item results.
Additional keys: not allowed
variablesarrayOptionalArray of operation results for each created variable.
Maximum items: 5
variables[]ModelEach itemExpand Delete variables — response body — variables item

Referenced models: Delete variables — response body — variables item

Create variables — response body — variables — Variables Batch Operation Multi Status

FieldTypePresenceDescription and constraints
$objectRootBatch response indicating mixed successes and failures. Contains a variables array with per-item outcomes and related details.
Additional keys: not allowed
variablesarrayOptionalArray of per-item operation results indicating success or failure for each variable.
Maximum items: 2
variables[]ModelEach itemExpand Delete variables — response body — variables item

Referenced models: Delete variables — response body — variables item

Delete variables — response body

FieldTypePresenceDescription and constraints
$objectRootBatch removal response indicating mixed outcomes for multiple variables, with per-item result details.
Additional keys: not allowed
variablesarrayOptionalArray of operation results for each deleted variable.
Maximum items: 6
variables[]ModelEach itemExpand Delete variables — response body — variables item

Referenced models: Delete variables — response body — variables item

Delete variables — response body — variables item

FieldTypePresenceDescription and constraints
$objectRootPer-item outcome for a variable operation, including code, message, status, and details such as the resulting variable id.
Additional keys: not allowed
codestringOptionalThe result code of the operation (for example, SUCCESS, INVALID_DATA).
Maximum length: 255
detailsModelOptionalExpand Delete variables — response body — variables item details
messagestringOptionalA human-readable message describing the result of the operation.
Maximum length: 255
statusstringOptionalThe status of the operation (for example, success or error).
Maximum length: 255

Referenced models: Delete variables — response body — variables item details

Delete variables — response body — variables item details

FieldTypePresenceDescription and constraints
$objectRootDetails of an individual variable operation result, including the id of the affected variable.
Additional keys: not allowed
api_namestringOptionalThe API name of the affected variable.
Maximum length: 100
idstringOptionalThe unique ID of the affected variable.
Format: int64
json_pathstringOptionalThe JSON path to the field that caused the error.
Maximum length: 255

Generate API Name — variables post Generate Api Name — request body — body

FieldTypePresenceDescription and constraints
$objectRootAlternate request payload wrapper containing items used to generate API names.
Additional keys: not allowed
variablesarrayRequired within parentArray of variable definitions. Mandatory.
Maximum items: 1
variables[]ModelEach itemExpand Generate API Name — variables post Generate Api Name — request body — body variables item

Referenced models: Generate API Name — variables post Generate Api Name — request body — body variables item

Generate API Name — variables post Generate Api Name — request body — body variables item

FieldTypePresenceDescription and constraints
$objectRootAlternate input item for API name generation, specifying the variable name and group.
Additional keys: not allowed
namestringRequired within parentThe display name for the variable. Mandatory.
Maximum length: 50
variable_groupModelRequired within parentExpand specific variable — response body — variables item variable group
The variable group to which this variable belongs. Mandatory.

Referenced models: specific variable — response body — variables item variable group

Generate API Name — variables post Generate Api Name — response body

FieldTypePresenceDescription and constraints
$objectRoot200 response providing generated API names for the submitted variables.
Additional keys: not allowed
variablesarrayOptionalArray of results for the API name generation operation.
Maximum items: 1
variables[]ModelEach itemExpand Generate API Name — variables post Generate Api Name — response body — variables item

Referenced models: Generate API Name — variables post Generate Api Name — response body — variables item

Generate API Name — variables post Generate Api Name — response body — variables item

FieldTypePresenceDescription and constraints
$objectRootPer-item result for a variable operation, providing a code, message, status, and details such as the variable ID.
Additional keys: not allowed
codestringOptionalThe result code of the operation (for example, SUCCESS).
Maximum length: 255
detailsModelOptionalExpand Generate API Name — variables post Generate Api Name — response body — variables item details
messagestringOptionalA human-readable message describing the result of the operation.
Maximum length: 255
statusstringOptionalThe status of the operation (for example, success or error).
Maximum length: 255

Referenced models: Generate API Name — variables post Generate Api Name — response body — variables item details

Generate API Name — variables post Generate Api Name — response body — variables item details

FieldTypePresenceDescription and constraints
$objectRootMinimal details about a variable operation, including the server-assigned variable identifier.
Additional keys: not allowed
api_namestringOptionalThe API name of the variable.
Maximum length: 255
idstringOptionalThe unique ID of the variable.
Format: int64

Retrieve all variables — response body

FieldTypePresenceDescription and constraints
$objectRootResponse wrapper containing an array of variables returned by the list operation.
Additional keys: not allowed
variablesarrayRequired within parentArray of variable objects, each containing the variable details such as name, API name, type, value, and variable group.
Maximum items: 200
variables[]ModelEach itemExpand specific variable — response body — variables item

Referenced models: specific variable — response body — variables item

Specific variable — variables delete Variables By Id — response body

FieldTypePresenceDescription and constraints
$objectRootSuccess response summarizing outcomes of variable removal within a scoped context, with per-item results.
Additional keys: not allowed
variablesarrayOptionalArray of operation results for each deleted variable.
Maximum items: 1
variables[]ModelEach itemExpand Delete variables — response body — variables item

Referenced models: Delete variables — response body — variables item

Specific variable — variables update Variable By Id — request body — body

FieldTypePresenceDescription and constraints
$objectRootAlternate instance of the scoped batch update request wrapper for variable updates.
Additional keys: not allowed
variablesarrayRequired within parentArray of variable update items to process. Mandatory.
Maximum items: 1
variables[]ModelEach itemExpand Update variables — request body — body variables item

Referenced models: Update variables — request body — body variables item

Specific variable — variables update Variable By Id — response body

FieldTypePresenceDescription and constraints
$objectRootSuccess response summarizing scoped batch updates with an array of per-item operation results.
Additional keys: not allowed
variablesarrayOptionalArray of variable update items to process.
Maximum items: 1
variables[]ModelEach itemExpand Delete variables — response body — variables item

Referenced models: Delete variables — response body — variables item

Update variables — request body — body

FieldTypePresenceDescription and constraints
$objectRootAlternate instance of the batch update request wrapper holding an array of variable update items.
Additional keys: not allowed
variablesarrayRequired within parentArray of variable update items to process. Mandatory.
Maximum items: 25
variables[]ModelEach itemExpand Update variables — request body — body variables item

Referenced models: Update variables — request body — body variables item

Update variables — request body — body variables item

FieldTypePresenceDescription and constraints
$objectRootObject used to update a variable's value within a scoped resource context; accepts id and the new value.
Additional keys: not allowed
idstringRequired within parentId of variables
Format: int64
Maximum length: 19
valuestring or nullRequired within parentdescribes value for the variables
Maximum length: 3000

Update variables — response body

FieldTypePresenceDescription and constraints
$objectRootSuccess response summarizing the outcome of a batch update, with an array of per-item operation results.
Additional keys: not allowed
variablesarrayOptionalArray of operation results for each updated variable.
Maximum items: 1
variables[]ModelEach itemExpand Delete variables — response body — variables item

Referenced models: Delete variables — response body — variables item

Variable Associations — response body

FieldTypePresenceDescription and constraints
$objectRootSuccess response containing an array of variable association groups for the requested context.
Additional keys: not allowed
variables_associationsarrayRequired within parentArray of variable association groups, each containing the association type and related resources.
Maximum items: 1
variables_associations[]ModelEach itemExpand Variable Associations — response body — variables associations item

Referenced models: Variable Associations — response body — variables associations item

Variable Associations — response body — variables associations item

FieldTypePresenceDescription and constraints
$objectRootGrouping of variable associations under a named category, including the list of associated resources.
Additional keys: not allowed
namestringRequired within parentThe name of the association category (for example, email_templates).
Maximum length: 255
resourcesarrayRequired within parentArray of resources associated with this variable under this category.
Maximum items: 1
resources[]ModelEach itemExpand Variable Associations — response body — variables associations item resources item

Referenced models: Variable Associations — response body — variables associations item resources item

Variable Associations — response body — variables associations item resources item

FieldTypePresenceDescription and constraints
$objectRootA resource associated with variables, including name, id, and nested association details.
Additional keys: not allowed
detailsModelRequired within parentExpand Variable Associations — response body — variables associations item resources item details
idstringRequired within parentThe unique ID of the associated resource.
Format: int64
Maximum length: 19
namestringRequired within parentThe name of the associated resource.
Maximum length: 255

Referenced models: Variable Associations — response body — variables associations item resources item details

Variable Associations — response body — variables associations item resources item details

FieldTypePresenceDescription and constraints
$objectRootDetails about a resource association, including the referenced module.
Additional keys: not allowed
moduleModelRequired within parentExpand Variable Associations — response body — variables associations item resources item details module

Referenced models: Variable Associations — response body — variables associations item resources item details module

Variable Associations — response body — variables associations item resources item details module

FieldTypePresenceDescription and constraints
$objectRootMinimal reference to a module used in association details, containing id and apiName.
Additional keys: not allowed
api_namestringRequired within parentThe API name of the CRM module.
Maximum length: 255
idstringRequired within parentThe unique ID of the CRM module.
Format: int64

specific variable — response body

FieldTypePresenceDescription and constraints
$objectRootCollection wrapper returning variables associated with the specified group identifier.
Additional keys: not allowed
variablesarrayRequired within parentArray of variable operation results.
Maximum items: 25
variables[]ModelEach itemExpand specific variable — response body — variables item

Referenced models: specific variable — response body — variables item

specific variable — response body — variables item

FieldTypePresenceDescription and constraints
$objectRootRepresentation of a variable within collection responses, including readOnly, apiName, name, description, id, source, type, value, and group brief.
Additional keys: not allowed
api_namestringRequired within parentThe API name of the CRM variable.
Maximum length: 100
descriptionJSONRequired within parent
description (anyOf 1)stringAlternativeThe description of the variable, if any.
Maximum length: 3000
description (anyOf 2)nullAlternativeThe description of the variable, if any.
Maximum length: 3000
idstringRequired within parentThe unique ID of the variable.
Format: int64
Maximum length: 19
namestringRequired within parentThe display name of the variable.
Maximum length: 50
read_onlybooleanOptionalIndicates whether the variable is read-only.
sourcestringRequired within parentThe source of the variable (for example, crm).
Maximum length: 255
typestringRequired within parentThe data type of the variable (for example, text, integer, percent, decimal, currency, date, datetime, email, phone, url, checkbox, textarea, long).
Maximum length: 255
valuestringOptionalThe current value of the variable, if any.
Maximum length: 3000
variable_groupModelRequired within parentExpand specific variable — response body — variables item variable group

Referenced models: specific variable — response body — variables item variable group

specific variable — response body — variables item variable group

FieldTypePresenceDescription and constraints
$objectRootBase schema for variable_group
Additional keys: allowed
api_namestringOptionalThe API name of the variable group.
Maximum length: 100
idstringOptionalThe unique ID of the variable group.
Maximum length: 19
namestringOptionalThe display name of the variable group.
Maximum length: 50

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.