Zoho: Get a single Approval Process
Zoho approvalProcess.getSingleApprovalProcess: arguments, response, policy and SDK examples.
← Approval process operations · Get started
Operation zoho.getsingleapprovalprocess
Provider route: GET /crm/v8/settings/approval_process/{approvalProcessId}. 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"]["getSingleApprovalProcess"]>[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.getSingleApprovalProcess(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.get_single_approval_process(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.approvalProcessId | string | Required within parent | Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
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 |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | Model | Alternative | Expand Get a single Approval Process — response body — approval process |
$ (anyOf 2) | null | Alternative |
Referenced models: Get a single Approval Process — response body — approval process
Schemas
Section titled “Schemas”Get a single Approval Process — response body — approval process
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | If data found for the given approval process Id in the URL, then this response is returned. Additional keys: not allowed |
approval_process | array | Required within parent | Field: approval_process Maximum items: 1 |
approval_process[] | Model | Each item | Expand Get a single Approval Process — response body — approval process approval process item |
Referenced models: Get a single Approval Process — response body — approval process approval process item
Get a single Approval Process — response body — approval process approval process item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for approval_process Additional keys: not allowed |
active | boolean | Required within parent | Field: active |
created_by | Model | Required within parent | Expand Get a single Approval Process — response body — approval process approval process item created by |
created_time | string | Required within parent | Field: created_time Maximum length: 255 |
description | string | Optional | Field: description Maximum length: 255 |
execute_on | string | Required within parent | Field: execute_on Maximum length: 255 |
generated_type | string | Required within parent | Field: generated_type Maximum length: 255 |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
modified_by | Model | Required within parent | Expand Get a single Approval Process — response body — approval process approval process item modified by |
modified_time | string | Required within parent | Field: modified_time Maximum length: 255 |
module | Model | Required within parent | Expand Get a single Approval Process — response body — approval process approval process item module |
name | string | Required within parent | Field: name Maximum length: 255 |
rules | array | Required within parent | Field: rules Maximum items: 5 |
rules[] | Model | Each item | Expand Get a single Approval Process — response body — approval process approval process item rules item |
sequence_number | JSON | Required within parent | |
sequence_number (anyOf 1) | integer | Alternative | Field: sequence_number Format: int32 |
sequence_number (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Get a single Approval Process — response body — approval process approval process item created by, Get a single Approval Process — response body — approval process approval process item modified by, Get a single Approval Process — response body — approval process approval process item module, Get a single Approval Process — response body — approval process approval process item rules item
Get a single Approval Process — response body — approval process approval process item created by
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for created_by Additional keys: not allowed |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
name | string | Required within parent | Field: name Maximum length: 255 |
Get a single Approval Process — response body — approval process approval process item modified by
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for modified_by Additional keys: not allowed |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
name | string | Required within parent | Field: name Maximum length: 255 |
Get a single Approval Process — response body — approval process approval process item module
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for module Additional keys: not allowed |
api_name | string | Required within parent | Field: api_name Maximum length: 255 |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
Get a single Approval Process — response body — approval process approval process item rules item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for rules Additional keys: not allowed |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
name | string | Optional | Field: name Maximum length: 255 |
overall_approval_type | string | Required within parent | Field: overall_approval_type Maximum length: 255 |
sequence_number | JSON | Required within parent | |
sequence_number (anyOf 1) | integer | Alternative | Field: sequence_number Format: int32 |
sequence_number (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.getsingleapprovalprocess. Catalog operation: getSingleApprovalProcess. 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.
No-content response statuses: [204]