Skip to content

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.

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 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.approval_process.post_approval_process(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyModelOptionalExpand Create Approval Process — request body — body

Referenced models: Create Approval Process — 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
$ModelRootExpand Create Approval Process — response body

Referenced models: Create Approval Process — response body

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

Create Approval Process — response body
FieldTypePresenceDescription and constraints
$objectRootSuccess response indicating approval process creation accepted, returning result items for each submitted process.
Additional keys: not allowed
approval_processarrayOptionalField: approval_process
Maximum items: 1
approval_process[]ModelEach itemExpand Clone Approval Process — response body — approval process item

Referenced models: Clone Approval Process — response body — approval process item

Create Approval Process — request body — body
FieldTypePresenceDescription and constraints
$objectRootRequest payload containing a list of approval processes to create or update.
Additional keys: not allowed
approval_processarrayRequired within parentList of approval processes to create/update. (Required)
Maximum items: 1
approval_process[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the outcome of an approval process creation attempt, including result code, status, and details.
Additional keys: not allowed
codestringOptionalField: code
Maximum length: 255
detailsModelOptionalExpand Clone Approval Process — response body — approval process item details
messagestringOptionalField: message
Maximum length: 255
statusstringOptionalField: status
Maximum length: 255

Referenced models: Clone Approval Process — response body — approval process item details

Create Approval Process — request body — body approval process item
FieldTypePresenceDescription and constraints
$objectRootDefines a complete approval process with module, name, activation status, trigger timing, and rules.
Additional keys: not allowed
activebooleanRequired within parentApproval process activate or deactivate status. (Required)
descriptionstring or nullOptionalDescription of the approval process.
Maximum length: 3000
execute_onstringRequired within parentSpecifies when the approval triggers:
create
edit
create_or_edit (Required)
One of: create, edit, create_or_edit
Maximum length: 50
generated_typestring or nullOptionalDefines the process creation type:
custom - User-created
internal - System-generated
One of: custom, internal
Maximum length: 50
moduleModelRequired within parentExpand Create Approval Process — request body — body approval process item module
Module the approval process applies to. (Required)
namestringRequired within parentName of the approval process. (Required)
Maximum length: 200
rulesarray or nullOptionalEach rule defines the logic, approvers, and actions.
Maximum items: 5
rules[]ModelEach itemExpand Create Approval Process — request body — body approval process item rules item
sequence_numberinteger or nullOptionalDefines 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
FieldTypePresenceDescription and constraints
$objectRootContains identifiers and related information returned after creating an approval process.
Additional keys: not allowed
idstringOptionalField: id
Format: int64
Maximum length: 255
Minimum length: 1
Pattern: ^[0-9]+$
Create Approval Process — request body — body approval process item rules item
FieldTypePresenceDescription and constraints
$objectRootA rule within the approval process defining criteria, approvers, actions, and record modification policies.
Additional keys: not allowed
actions_per_approvalarray or nullOptionalThis defines the actions to be executed on each order of approval stages for everyone parallel approver type.
Maximum items: 10
actions_per_approval[]ModelEach itemExpand Create Approval Process — request body — body approval process item rules item actions per approval item
actions_upon_final_approvalModelOptionalExpand 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_rejectionModelOptionalExpand Create Approval Process — request body — body approval process item rules item actions upon rejection
Actions to be executed when a record is rejected.
approver_stagesarrayRequired within parentRepresents the multi-stage approval. Each stage includes an approver and associated actions. (Required)
Maximum items: 10
approver_stages[]ModelEach itemExpand Create Approval Process — request body — body approval process item rules item approver stages item
criteriaModelRequired within parentExpand Create Approval Process — request body — body approval process item rules item criteria
Criteria for executing the rule. (Required)
namestringRequired within parentName of the rule. (Required)
Maximum length: 200
overall_approval_typestringRequired within parentType 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_modificationModelOptionalExpand 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_configurationModelOptionalExpand Create Approval Process — request body — body approval process item rules item process admin configuration
Permissions and behavior assigned to process administrators.
sequence_numberinteger or nullOptionalExecution 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
FieldTypePresenceDescription and constraints
$objectRootIdentifies the target module for a create-record action using the module API name and ID.
Additional keys: not allowed
api_namestring or nullOptionalModule API name
Maximum length: 200
idstring or nullOptionalId of the module.
Maximum length: 25
Create Approval Process — request body — body approval process item rules item criteria
FieldTypePresenceDescription and constraints
$objectRootDefines a single condition for rule evaluation with a comparator, a field reference, and a comparison value.
Additional keys: not allowed
comparatorstring or nullOptionalCondition operator, e.g., equal, not_equal
Maximum length: 5
fieldModelOptionalExpand Create Approval Process — request body — body approval process item rules item criteria field
Field used for evaluation
valuestring or nullOptionalvalue 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
FieldTypePresenceDescription and constraints
$objectRootReference to a field used in create-record action mappings.
Additional keys: not allowed
api_namestring or nullOptionalAPI name of the field
Maximum length: 200
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
idstring or nullOptionalId of the field
Maximum length: 25

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.

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 how our website, product, and documentation are used.

Performance diagnostics

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

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

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