Skip to content

Zoho: Reorder the rules of an Approval Process

Zoho approvalProcess.postReorderRules: arguments, response, policy and SDK examples.

← Approval process operations · Get started

Operation zoho.postreorderrules

Provider route: POST /crm/v8/settings/approval_process/{approvalProcessId}/rules/actions/reorder. 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"]["postReorderRules"]>[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.postReorderRules(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_reorder_rules(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.approvalProcessIdstringRequired within parentFormat: int64
Maximum length: 255
Minimum length: 1
Pattern: ^[0-9]+$
bodyModelOptionalExpand Reorder the rules of an Approval Process — request body — body

Referenced models: Reorder the rules of an 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 Reorder the rules of an Approval Process — response body

Referenced models: Reorder the rules of an Approval Process — response body

Reorder the rules of an Approval Process — response body
FieldTypePresenceDescription and constraints
$objectRootReordered the approval processes successfully
Additional keys: not allowed
reorderModelOptionalExpand Reorder the rules of an Approval Process — response body — reorder

Referenced models: Reorder the rules of an Approval Process — response body — reorder

Reorder the rules of an Approval Process — request body — body
FieldTypePresenceDescription and constraints
$objectRootRequest body schema
Additional keys: not allowed
reorderModelRequired within parentExpand Reorder the rules of an Approval Process — request body — body reorder
The main object that contains the information required to update the order of rules within an approval process. (Required)

Referenced models: Reorder the rules of an Approval Process — request body — body reorder

Reorder the rules of an Approval Process — response body — reorder
FieldTypePresenceDescription and constraints
$objectRootNested schema for reorder
Additional keys: not allowed
codestringOptionalField: code
Maximum length: 255
detailsModelOptionalExpand Reorder the rules of an Approval Process — response body — reorder details
messagestringOptionalField: message
Maximum length: 255
statusstringOptionalField: status
Maximum length: 255

Referenced models: Reorder the rules of an Approval Process — response body — reorder details

Reorder the rules of an Approval Process — request body — body reorder
FieldTypePresenceDescription and constraints
$objectRootThe main object that contains the information required to update the order of rules within an approval process.
Additional keys: not allowed
rulesarrayRequired within parentA list of rule entries whose sequence positions need to be rearranged. (Required)
Maximum items: 5
rules[]ModelEach itemExpand Reorder the rules of an Approval Process — request body — body reorder rules item

Referenced models: Reorder the rules of an Approval Process — request body — body reorder rules item

Reorder the rules of an Approval Process — response body — reorder details
FieldTypePresenceDescription and constraints
$objectRootNested schema for details
Additional keys: not allowed
Reorder the rules of an Approval Process — request body — body reorder rules item
FieldTypePresenceDescription and constraints
$objectRootA list of rule entries whose sequence positions need to be rearranged.
Additional keys: not allowed
idstringRequired within parentThe unique identifier of the rule that you want to reorder. (Required) (Unique)
Format: int64
Maximum length: 25
Minimum length: 1
Pattern: ^[0-9]+$
sequence_numberintegerRequired within parentThe new position or order number that you want to assign to the rule. (Required) (Unique)
Format: int32

SDK function policy ID: zoho.postreorderrules. Catalog operation: postReorderRules. 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.