Zoho: Reorder the execution sequence of approval processes
Zoho approvalProcess.postReorder: arguments, response, policy and SDK examples.
← Approval process operations · Get started
Operation zoho.postreorder
Provider route: POST /crm/v8/settings/approval_process/actions/reorder. 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"]["postReorder"]>[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.postReorder(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_reorder(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | object | Required within parent | Additional keys: not allowed |
query.module | string | Required within parent | Maximum length: 3000 |
body | Model | Optional | Expand Reorder the execution sequence of approval processes — request body — body |
Referenced models: Reorder the execution sequence of approval processes — 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 Reorder the rules of an Approval Process — response body |
Referenced models: Reorder the rules of an Approval Process — response body
Schemas
Section titled “Schemas”Reorder the rules of an Approval Process — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Reordered the approval processes successfully Additional keys: not allowed |
reorder | Model | Optional | Expand Reorder the rules of an Approval Process — response body — reorder |
Referenced models: Reorder the rules of an Approval Process — response body — reorder
Reorder the execution sequence of approval processes — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request body schema Additional keys: not allowed |
reorder | Model | Required within parent | Expand Reorder the execution sequence of approval processes — request body — body reorder root key for reordering the approval processes. (Required) |
Referenced models: Reorder the execution sequence of approval processes — request body — body reorder
Reorder the rules of an Approval Process — response body — reorder
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for reorder Additional keys: not allowed |
code | string | Optional | Field: code Maximum length: 255 |
details | Model | Optional | Expand Reorder the rules of an Approval Process — response body — reorder details |
message | string | Optional | Field: message Maximum length: 255 |
status | string | Optional | Field: status Maximum length: 255 |
Referenced models: Reorder the rules of an Approval Process — response body — reorder details
Reorder the execution sequence of approval processes — request body — body reorder
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | root key for reordering the approval processes. Additional keys: not allowed |
approval_process | array | Required within parent | A list of approval processes whose sequence/order needs to be updated. (Required) Maximum items: 100 |
approval_process[] | Model | Each item | Expand Reorder the execution sequence of approval processes — request body — body reorder approval process item |
Referenced models: Reorder the execution sequence of approval processes — request body — body reorder approval process item
Reorder the rules of an Approval Process — response body — reorder details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for details Additional keys: not allowed |
Reorder the execution sequence of approval processes — request body — body reorder approval process item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A list of approval processes whose sequence/order needs to be updated. Additional keys: not allowed |
id | string | Required within parent | The unique identifier of the approval process that you want to reorder. (Required) (Unique) Format: int64 Maximum length: 25 Minimum length: 1 Pattern: ^[0-9]+$ |
sequence_number | integer | Required within parent | The new position/order number you want to assign to this approval process. (Required) (Unique) Format: int32 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.postreorder. Catalog operation: postReorder. 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.