Zoho: Update a Blueprint state by ID
Zoho blueprintStateConfig.updateBlueprintStateById: arguments, response, policy and SDK examples.
← Blueprint state config operations · Get started
Operation zoho.updateblueprintstatebyid
Provider route: PUT /crm/v8/settings/blueprints/{blueprintId}/states/{stateId}. 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["blueprintStateConfig"]["updateBlueprintStateById"]>[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.blueprintStateConfig.updateBlueprintStateById(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.blueprint_state_config.update_blueprint_state_by_id(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.blueprintId | string | Required within parent | Format: int64 Maximum length: 19 Minimum length: 1 Pattern: ^[0-9]+ |
path.stateId | string | Required within parent | Format: int64 Maximum length: 19 Minimum length: 1 Pattern: ^[0-9]+ |
headers | object | Required within parent | Additional keys: not allowed |
headers.X-ZOHO-SERVICE | string | Required within parent | One of: automation |
body | Model | Optional | Expand Update a Blueprint state by ID — request body — body |
Referenced models: Update a Blueprint state by ID — 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 Update a Blueprint state by ID — response body |
Referenced models: Update a Blueprint state by ID — response body
Schemas
Section titled “Schemas”7 more schemas are linked from the tables above, on the schema pages.
Update a Blueprint state by ID — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Batch request wrapper for updating multiple identified state records. Additional keys: not allowed |
states | array | Required within parent | The list of Blueprint state objects to update, each containing the details required for a state transition. Maximum items: 300 Minimum items: 1 |
states[] | Model | Each item | Expand Update Blueprint States — request body — body states item |
Referenced models: Update Blueprint States — request body — body states item
Update a Blueprint state by ID — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response returned after updating Blueprint states by specific IDs, containing the results for each state operation. Additional keys: not allowed |
states | array | Optional | The list of Blueprint states returned in the response. Maximum items: 1 |
states[] | Model | Each item | Expand Delete a Blueprint state — response body — states item |
Referenced models: Delete a Blueprint state — response body — states item
Update Blueprint States — request body — body states item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An alternative Blueprint state update entry containing the target state, process identifier, and escalation configuration. Additional keys: not allowed |
id | string or null | Optional | The unique ID of the Blueprint state being updated. Maximum length: 25 Pattern: [0-9]+ |
process_id | string or null | Optional | The ID of the Blueprint for which the state is being updated. Maximum length: 25 Pattern: [0-9]+ |
state_escalation | Model | Optional | Expand Create Blueprint States — request body — body states item state escalation Details of the state escalation |
Referenced models: Create Blueprint States — request body — body states item state escalation
Delete a Blueprint state — response body — states item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The result of a state operation, including status, code, message, and per-item details. Additional keys: not allowed |
code | string | Optional | The result code for the operation. Possible values: **SUCCESS** - The operation completed successfully. Known values: SUCCESS Maximum length: 255 |
details | Model | Optional | Expand Delete a Blueprint state — response body — states item details |
message | string | Optional | The message returned for the state operation result. Maximum length: 255 |
status | string | Optional | The outcome status of the state operation for the corresponding item. Maximum length: 255 |
Referenced models: Delete a Blueprint state — response body — states item details
Create Blueprint States — request body — body states item state escalation
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An alternative escalation policy configuration for a state, containing updated timing, value, and trigger details. Additional keys: not allowed |
period | string | Required within parent | The time unit for the escalation period. Possible values: **days** - The period is measured in calendar days. **hours** - The period is measured in hours. **minutes** - The period is measured in minutes. **business_days** - The period is measured in business days. **business_hours** - The period is measured in business hours. One of: days, hours, minutes, business_days, business_hours Maximum length: 50 |
trigger_details | array | Required within parent | The list of trigger configurations defined for the state escalation alert. Maximum items: 3 |
trigger_details[] | Model | Each item | Expand Create Blueprint States — request body — body states item state escalation trigger details item |
value | integer | Required within parent | The maximum time, in the configured unit, for which a record can remain in the state before escalation. Format: int32 |
Referenced models: Create Blueprint States — request body — body states item state escalation trigger details item
Delete a Blueprint state — response body — states item details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An automation action reference used in update operations, identified by its **id** and an optional **name**. Additional keys: allowed |
id | string | Optional | The unique identifier of the automation action configured for the trigger. Maximum length: 255 Pattern: [0-9]+ |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the action configured for the automation trigger. Maximum length: 100 |
name (anyOf 2) | null | Alternative | The name of the action configured for the automation trigger. Maximum length: 100 |
Create Blueprint States — request body — body states item state escalation trigger details item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Alternate trigger configuration for state escalation updates, specifying timing and actions. Additional keys: not allowed |
actions | array | Required within parent | The list of actions configured to trigger during a state escalation alert for the specified execution type. Maximum items: 5 |
actions[] | JSON | Each item | |
actions[] (anyOf 1) | Model | Alternative | Expand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: sla |
actions[] (anyOf 2) | Model | Alternative | Expand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: circuits, whatsapp, sms |
actions[] (anyOf 3) | Model | Alternative | Expand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: email notifications |
actions[] (anyOf 4) | Model | Alternative | Expand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: tasks |
actions[] (anyOf 5) | Model | Alternative | Expand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: field updates |
actions[] (anyOf 6) | Model | Alternative | Expand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: webhooks |
actions[] (anyOf 7) | Model | Alternative | Expand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: functions |
execute_type | string | Required within parent | Represents the execution timing that determines when the escalation actions are triggered. Possible values: **before** - Actions are triggered before the specified escalation event. **on** - Actions are triggered at the time of the specified escalation event. **after** - Actions are triggered after the specified escalation event. One of: before, on, after Maximum length: 7 |
period | string | Required within parent | Represents the unit of time for the escalation trigger period. Possible values: **days** - The period is measured in calendar days. **hours** - The period is measured in hours. **minutes** - The period is measured in minutes. **business_days** - The period is measured in business days. **business_hours** - The period is measured in business hours. One of: days, hours, minutes, business_days, business_hours Maximum length: 50 |
value | integer | Required within parent | Represents the maximum time duration, in integer units, for which a record can remain in the current state before the escalation is triggered. Format: int32 |
Referenced models: Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: circuits, whatsapp, sms, Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: email notifications, Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: field updates, Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: functions, Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: sla, Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: tasks, Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: webhooks
Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: circuits, whatsapp, sms details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An automation action reference used in update operations, identified by its **id** and an optional **name**. Additional keys: allowed |
id | string | Optional | The unique identifier of the automation action configured for the trigger. Maximum length: 255 Pattern: [0-9]+ |
name | string or null | Optional | The name of the action configured for the automation trigger. Maximum length: 100 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.updateblueprintstatebyid. Catalog operation: updateBlueprintStateById. 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.