Zoho: Zia Data Enrichment Configuration
Zoho ziaEnrichment.createZiaEnrichmentConfigurations: arguments, response, policy and SDK examples.
← Zia enrichment operations · Get started
Operation zoho.createziaenrichmentconfigurations
Provider route: POST /crm/v8/settings/zia/data_enrichment. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”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["ziaEnrichment"]["createZiaEnrichmentConfigurations"]>[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.ziaEnrichment.createZiaEnrichmentConfigurations(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom 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.zia_enrichment.create_zia_enrichment_configurations(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
body | object | Required within parent | Request body schema for creating Zia Enrichment configurations. Additional keys: not allowed |
body.data_enrichment | array | Required within parent | Array of data enrichment configurations. Maximum items: 50 |
body.data_enrichment[] | object | Each item | Configuration item for a single module’s enrichment settings. Additional keys: not allowed |
body.data_enrichment[].input_data_field_mapping | Model | Required within parent | Expand Zia Data Enrichment Configuration — request body — body data enrichment item input data field mapping |
body.data_enrichment[].module | Model | Required within parent | Expand Zia Data Enrichment Configuration — request body — body data enrichment item module |
body.data_enrichment[].output_data_field_mapping | Model | Required within parent | Expand Zia Data Enrichment Configuration — request body — body data enrichment item input data field mapping |
body.data_enrichment[].type | string | Required within parent | Type of enrichment — either ‘personal’ or ‘organization’. Maximum length: 255 |
Referenced models: Zia Data Enrichment Configuration — request body — body data enrichment item input data field mapping, Zia Data Enrichment Configuration — request body — body data enrichment item module
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Enrichment created successfully. Additional keys: not allowed |
data_enrichment | array | Required within parent | Array of creation results for each configuration. Maximum items: 50 |
data_enrichment[] | object | Each item | Result item for a single enrichment configuration creation. Additional keys: not allowed |
data_enrichment[].code | string | Required within parent | Result code indicating the operation status. Maximum length: 255 |
data_enrichment[].details | object | Required within parent | Details of the created enrichment configuration. Additional keys: not allowed |
data_enrichment[].details.created_by | object | Required within parent | User who created the enrichment configuration. Additional keys: not allowed |
data_enrichment[].details.created_by.id | string | Required within parent | Unique identifier of the user who created the configuration. Maximum length: 19 |
data_enrichment[].details.created_by.name | string | Required within parent | Name of the user who created the configuration. Maximum length: 255 |
data_enrichment[].details.created_time | string | Required within parent | Timestamp when the enrichment configuration was created. Maximum length: 255 |
data_enrichment[].details.id | string | Required within parent | Unique identifier of the created enrichment configuration. Maximum length: 19 |
data_enrichment[].message | string | Required within parent | Human-readable message describing the operation result. Maximum length: 255 |
data_enrichment[].status | string | Required within parent | Overall status of the operation — ‘success’ or ‘error’. Maximum length: 255 |
Schemas
Section titled “Schemas”Zia Data Enrichment Configuration — request body — body data enrichment item input data field mapping
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | array | Root | Array of field mappings for write operations. Maximum items: 50 |
$[] | object | Each item | Field mapping item for write operations. Additional keys: not allowed |
$[].crm_field | JSON | Required within parent | CRM field object. Provide both ID and API name. Use the [Get Fields Metadata API](fields.yaml#$.paths./settings/fields.get) to get CRM field IDs and API names. |
$[].crm_field (anyOf 1) | object | Alternative | CRM field object with ID and API name. Additional keys: not allowed |
$[].crm_field (anyOf 1).api_name | string | Required within parent | API name of the CRM field. Maximum length: 255 |
$[].crm_field (anyOf 1).id | string | Required within parent | Unique identifier of the CRM field. Maximum length: 19 |
$[].crm_field (anyOf 2) | null | Alternative | Null value for CRM field (no mapping). |
$[].enrich_field | object | Required within parent | Zia enrichment field metadata. Additional keys: not allowed |
$[].enrich_field.name | string | Required within parent | Name of the Zia enrichment field. Maximum length: 255 |
Zia Data Enrichment Configuration — request body — body data enrichment item module
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | CRM module metadata with ID and API name. Additional keys: not allowed |
api_name | string | Required within parent | API name of the CRM module (e.g., Leads, Contacts, Accounts). Use the [Get Modules API](modules.yaml#$.paths./settings/modules.get) to get module API names. Maximum length: 255 |
id | string | Required within parent | Unique identifier of the CRM module. Use the [Get Modules API](modules.yaml#$.paths./settings/modules.get) to get module IDs. Maximum length: 19 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.createziaenrichmentconfigurations. Catalog operation: createZiaEnrichmentConfigurations. 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.