Skip to content

Zoho: Update custom fields

Zoho fields.updateField: arguments, response, policy and SDK examples.

← Fields operations · Get started

Operation zoho.updatefield

Provider route: PATCH /crm/v8/settings/fields. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["fields"]["updateField"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.fields.updateField(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_zoho import ZohoIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.fields.update_field(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectRequired within parentAdditional keys: not allowed
query.modulestringRequired within parentThe API name of the module to which the field belongs.
Maximum length: 30
bodyModelRequired within parentExpand Update custom fields — request body — body

Referenced models: Update custom fields — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Update custom fields — response body — fields
$ (anyOf 2)objectAlternativeRepresents the multi-status response for a bulk field update request, containing a mix of success and error results.
Additional keys: not allowed
$ (anyOf 2).fieldsarrayRequired within parentRepresents the list of per-field results for the bulk update operation, where each item indicates either a successful update or a validation error.
Maximum items: 25
Minimum items: 2
$ (anyOf 2).fields[]JSONEach item
$ (anyOf 2).fields[] (anyOf 1)ModelAlternativeExpand Delete a custom field — response body — fields item
$ (anyOf 2).fields[] (anyOf 2)ModelAlternativeExpand Update custom fields — response body — fields fields item Represents the error response structure

Referenced models: Update custom fields — response body — fields, Delete a custom field — response body — fields item, Update custom fields — response body — fields fields item Represents the error response structure

12 more schemas are linked from the tables above, on the schema pages.

Update custom fields — response body — fields
FieldTypePresenceDescription and constraints
$objectRootRepresents the response body returned when one or more custom fields are created.
Additional keys: not allowed
fieldsarrayRequired within parentRepresents the list of creation results, one per field submitted in the request.
Maximum items: 5
fields[]ModelEach itemExpand Delete a custom field — response body — fields item

Referenced models: Delete a custom field — response body — fields item

Delete a custom field — response body — fields item
FieldTypePresenceDescription and constraints
$objectRootRepresents the result of a single field creation.
Additional keys: not allowed
codestringRequired within parentRepresents the result code.
Known values: SUCCESS
detailsobjectRequired within parentRepresents the details of the created field.
Additional keys: not allowed
details.idstringRequired within parentRepresents the ID of the created field.
Maximum length: 25
messagestringRequired within parentRepresents the result message.
Maximum length: 225
statusstringRequired within parentRepresents the status of the operation.
Known values: success
Update custom fields — response body — fields / fields / item / Represents the error response structure / code: DEPENDENT MISMATCH, status: error, success details Represents the dependent mismatch details — shared_details_02ed58aa78cb
FieldTypePresenceDescription and constraints
$objectRootRepresents the dependent mismatch details.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the global picklist.
Maximum length: 25
dependeeobjectRequired within parentRepresents the dependice Details .
Additional keys: not allowed
dependee.api_namestringRequired within parentRepresents the API name of the global picklist.
Maximum length: 25
dependee.json_pathstringRequired within parentRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
json_pathstringRequired within parentRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
supported_valuesarrayRequired within parentRepresents the list of supported values that can be provided for the field.
Maximum items: 25
Minimum items: 1
supported_values[]stringEach itemRepresents the supported value.
Maximum length: 255
Update custom fields — response body — fields / fields / item / Represents the error response structure / code: EXPECTED FIELD MISSING, status: error, success details
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of the expected fields that are missing.
Additional keys: not allowed
api_namestringOptionalRepresents the API name of the expected field.
Maximum length: 25
expected_fieldsarrayOptionalRepresents the list of expected fields that are missing.
Maximum items: 25
Minimum items: 1
expected_fields[]objectEach itemRepresents the field due to which dependent fields are expected.
Additional keys: not allowed
expected_fields[].api_namestringOptionalRepresents the API name of the expected field.
Maximum length: 25
expected_fields[].json_pathstringOptionalRepresents the JSON path of the expected field.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
json_pathstringOptionalRepresents the JSON path of the expected field.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
Update custom fields — response body — fields / fields / item / Represents the error response structure / code: DYNAMIC EXPRESSION LENGTH EXCEEDED, status: error details
FieldTypePresenceDescription and constraints
$objectRootRepresents the length Exceeded details.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the global picklist.
Maximum length: 25
dependeeobjectRequired within parentRepresents the maximum length allowed.
Additional keys: not allowed
dependee.api_namestringOptionalRepresents the API name of the global picklist.
Maximum length: 25
dependee.json_pathstringOptionalRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
json_pathstringRequired within parentRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
Update custom fields — response body — fields / fields / item / Represents the error response structure / code: INVALID DATA, status: error details api name, json path, supported values
FieldTypePresenceDescription and constraints
$objectRootIndicates whether the given data is invalid for a list of values.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the global picklist.
Maximum length: 25
json_pathstringRequired within parentRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
supported_valuesarrayRequired within parentRepresents the list of supported values accepted for the JSON key identified by **api_name** and **json_path**.
Maximum items: 25
Minimum items: 1
supported_values[]JSONEach item
supported_values[] (anyOf 1)stringAlternativeRepresents the string values that can be present.
Maximum length: 255
supported_values[] (anyOf 2)booleanAlternativeRepresents a Boolean value that can be present in the supported values list.
Update custom fields — response body — fields / fields / item / Represents the error response structure / code: INVALID DATA, status: error details allowed values, api name, json path
FieldTypePresenceDescription and constraints
$objectRootIndicates whether the given data is invalid for a list of values.
Additional keys: not allowed
allowed_valuesarrayRequired within parentRepresents the list of allowed values accepted for the JSON key identified by **api_name** and **json_path**.
Maximum items: 25
Minimum items: 1
allowed_values[]stringEach itemRepresents the values can be present.
Maximum length: 255
api_namestringRequired within parentRepresents the API name of the global picklist.
Maximum length: 25
json_pathstringRequired within parentRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
Update custom fields — response body — fields / fields / item / Represents the error response structure / code: PARTICIPATING FIELD NOT FOUND, status error details
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of the validation errors.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the field with incorrect data type.
Maximum length: 25
idstringRequired within parentRepresents the ID of the field with incorrect data type.
Maximum length: 25
json_pathstringRequired within parentRepresents the JSON path of the field with incorrect data type.
Maximum length: 500
Update custom fields — response body — fields / fields / item / Represents the error response structure / code: INVALID DATA, status: error details Represents the error Response for invalid data
FieldTypePresenceDescription and constraints
$objectRootRepresents the error Response for invalid data.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the field that triggered the error, used to identify the specific field within the Zoho CRM module.
Maximum length: 25
json_pathstringRequired within parentRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
Update custom fields — response body — fields / fields / item / Represents the error response structure / code: DEPENDENT FIELD MISSING, status: error, success details
FieldTypePresenceDescription and constraints
$objectRootRepresents the missing dependent field details.
Additional keys: not allowed
api_namestringOptionalRepresents the API name of the global picklist.
Maximum length: 25
dependeeobjectOptionalRepresents the field due to which dependent fields are expected.
Additional keys: not allowed
dependee.api_namestringOptionalRepresents the API name of the global picklist.
Maximum length: 30
dependee.json_pathstringOptionalRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
json_pathstringOptionalRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$
Update custom fields — response body — fields / fields / item / Represents the error response structure / code: INVALID DATA, status: error details Represents the request has invalid datatype
FieldTypePresenceDescription and constraints
$objectRootRepresents the request has invalid datatype
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the global picklist.
Maximum length: 30
expected_data_typestringRequired within parentRepresents the name of the expected_data_type.
Maximum length: 25
json_pathstringRequired within parentRepresents the JSON path to the field with the error.
Maximum length: 500
Pattern: ^\$(\.[a-zA-Z_][a-zA-Z0-9_]*|\[[0-9]+\])+$

SDK function policy ID: zoho.updatefield. Catalog operation: updateField. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

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.