Zoho: Create Approval Process
Zoho approvalProcess.postApprovalProcess: arguments, response, policy and SDK examples.
← Approval process operations · Get started
Operation zoho.postapprovalprocess
Provider route: POST /crm/v8/settings/approval_process. 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["approvalProcess"]["postApprovalProcess"]>[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.approvalProcess.postApprovalProcess(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.approval_process.post_approval_process(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
body | Model | Optional | Expand Create Approval Process — request body — body |
Referenced models: Create Approval Process — request body — body
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 |
|---|---|---|---|
$ | Model | Root | Expand Create Approval Process — response body |
Referenced models: Create Approval Process — response body
Schemas
Section titled “Schemas”34 more schemas are linked from the tables above, on the schema pages.
Create Approval Process — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Success response indicating approval process creation accepted, returning result items for each submitted process. Additional keys: not allowed |
approval_process | array | Optional | Field: approval_process Maximum items: 1 |
approval_process[] | Model | Each item | Expand Clone Approval Process — response body — approval process item |
Referenced models: Clone Approval Process — response body — approval process item
Create Approval Process — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request payload containing a list of approval processes to create or update. Additional keys: not allowed |
approval_process | array | Required within parent | List of approval processes to create/update. (Required) Maximum items: 1 |
approval_process[] | Model | Each item | Expand Create Approval Process — request body — body approval process item |
Referenced models: Create Approval Process — request body — body approval process item
Clone Approval Process — response body — approval process item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the outcome of an approval process creation attempt, including result code, status, and details. Additional keys: not allowed |
code | string | Optional | Field: code Maximum length: 255 |
details | Model | Optional | Expand Clone Approval Process — response body — approval process item details |
message | string | Optional | Field: message Maximum length: 255 |
status | string | Optional | Field: status Maximum length: 255 |
Referenced models: Clone Approval Process — response body — approval process item details
Create Approval Process — request body — body approval process item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines a complete approval process with module, name, activation status, trigger timing, and rules. Additional keys: not allowed |
active | boolean | Required within parent | Approval process activate or deactivate status. (Required) |
description | string or null | Optional | Description of the approval process. Maximum length: 3000 |
execute_on | string | Required within parent | Specifies when the approval triggers: create edit create_or_edit (Required) One of: create, edit, create_or_edit Maximum length: 50 |
generated_type | string or null | Optional | Defines the process creation type: custom - User-created internal - System-generated One of: custom, internal Maximum length: 50 |
module | Model | Required within parent | Expand Create Approval Process — request body — body approval process item module Module the approval process applies to. (Required) |
name | string | Required within parent | Name of the approval process. (Required) Maximum length: 200 |
rules | array or null | Optional | Each rule defines the logic, approvers, and actions. Maximum items: 5 |
rules[] | Model | Each item | Expand Create Approval Process — request body — body approval process item rules item |
sequence_number | integer or null | Optional | Defines ordering of the approval process. Format: int32 Read only: true |
Referenced models: Create Approval Process — request body — body approval process item rules item, Create Approval Process — request body — body approval process item module
Clone Approval Process — response body — approval process item details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains identifiers and related information returned after creating an approval process. Additional keys: not allowed |
id | string | Optional | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
Create Approval Process — request body — body approval process item rules item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A rule within the approval process defining criteria, approvers, actions, and record modification policies. Additional keys: not allowed |
actions_per_approval | array or null | Optional | This defines the actions to be executed on each order of approval stages for everyone parallel approver type. Maximum items: 10 |
actions_per_approval[] | Model | Each item | Expand Create Approval Process — request body — body approval process item rules item actions per approval item |
actions_upon_final_approval | Model | Optional | Expand Create Approval Process — request body — body approval process item rules item actions upon final approval Automation triggers after the entire approval process is completed successfully. |
actions_upon_rejection | Model | Optional | Expand Create Approval Process — request body — body approval process item rules item actions upon rejection Actions to be executed when a record is rejected. |
approver_stages | array | Required within parent | Represents the multi-stage approval. Each stage includes an approver and associated actions. (Required) Maximum items: 10 |
approver_stages[] | Model | Each item | Expand Create Approval Process — request body — body approval process item rules item approver stages item |
criteria | Model | Required within parent | Expand Create Approval Process — request body — body approval process item rules item criteria Criteria for executing the rule. (Required) |
name | string | Required within parent | Name of the rule. (Required) Maximum length: 200 |
overall_approval_type | string | Required within parent | Type of approval execution i.e., anyone, everyone parallel or everyone sequential (Required) One of: anyone, everyone_parallel, everyone_sequential Maximum length: 50 |
overall_stages_record_modification | Model | Optional | Expand Create Approval Process — request body — body approval process item rules item overall stages record modification Defines allowed fields for editing in a record during waiting & after rejection. |
process_admin_configuration | Model | Optional | Expand Create Approval Process — request body — body approval process item rules item process admin configuration Permissions and behavior assigned to process administrators. |
sequence_number | integer or null | Optional | Execution order of the rule. Format: int32 Read only: true |
Referenced models: Create Approval Process — request body — body approval process item rules item criteria, Create Approval Process — request body — body approval process item rules item approver stages item, Create Approval Process — request body — body approval process item rules item overall stages record modification, Create Approval Process — request body — body approval process item rules item actions upon final approval, Create Approval Process — request body — body approval process item rules item actions per approval item, Create Approval Process — request body — body approval process item rules item process admin configuration, Create Approval Process — request body — body approval process item rules item actions upon rejection
Create Approval Process — request body — body approval process item module
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Identifies the target module for a create-record action using the module API name and ID. Additional keys: not allowed |
api_name | string or null | Optional | Module API name Maximum length: 200 |
id | string or null | Optional | Id of the module. Maximum length: 25 |
Create Approval Process — request body — body approval process item rules item criteria
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines a single condition for rule evaluation with a comparator, a field reference, and a comparison value. Additional keys: not allowed |
comparator | string or null | Optional | Condition operator, e.g., equal, not_equal Maximum length: 5 |
field | Model | Optional | Expand Create Approval Process — request body — body approval process item rules item criteria field Field used for evaluation |
value | string or null | Optional | value of the field. Maximum length: 9 |
Referenced models: Create Approval Process — request body — body approval process item rules item criteria field
Create Approval Process — request body — body approval process item rules item criteria field
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Reference to a field used in create-record action mappings. Additional keys: not allowed |
api_name | string or null | Optional | API name of the field Maximum length: 200 Pattern: ^[A-Za-z][A-Za-z0-9_]*$ |
id | string or null | Optional | Id of the field Maximum length: 25 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.postapprovalprocess. Catalog operation: postApprovalProcess. 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.