Skip to content

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.

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 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.blueprint_state_config.update_blueprint_state_by_id(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.blueprintIdstringRequired within parentFormat: int64
Maximum length: 19
Minimum length: 1
Pattern: ^[0-9]+
path.stateIdstringRequired within parentFormat: int64
Maximum length: 19
Minimum length: 1
Pattern: ^[0-9]+
headersobjectRequired within parentAdditional keys: not allowed
headers.X-ZOHO-SERVICEstringRequired within parentOne of: automation
bodyModelOptionalExpand Update a Blueprint state by ID — request body — body

Referenced models: Update a Blueprint state by ID — 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 Update a Blueprint state by ID — response body

Referenced models: Update a Blueprint state by ID — response body

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

Update a Blueprint state by ID — request body — body
FieldTypePresenceDescription and constraints
$objectRootBatch request wrapper for updating multiple identified state records.
Additional keys: not allowed
statesarrayRequired within parentThe list of Blueprint state objects to update, each containing the details required for a state transition.
Maximum items: 300
Minimum items: 1
states[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootThe response returned after updating Blueprint states by specific IDs, containing the results for each state operation.
Additional keys: not allowed
statesarrayOptionalThe list of Blueprint states returned in the response.
Maximum items: 1
states[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootAn alternative Blueprint state update entry containing the target state, process identifier, and escalation configuration.
Additional keys: not allowed
idstring or nullOptionalThe unique ID of the Blueprint state being updated.
Maximum length: 25
Pattern: [0-9]+
process_idstring or nullOptionalThe ID of the Blueprint for which the state is being updated.
Maximum length: 25
Pattern: [0-9]+
state_escalationModelOptionalExpand 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
FieldTypePresenceDescription and constraints
$objectRootThe result of a state operation, including status, code, message, and per-item details.
Additional keys: not allowed
codestringOptionalThe result code for the operation. Possible values: **SUCCESS** - The operation completed successfully.
Known values: SUCCESS
Maximum length: 255
detailsModelOptionalExpand Delete a Blueprint state — response body — states item details
messagestringOptionalThe message returned for the state operation result.
Maximum length: 255
statusstringOptionalThe 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
FieldTypePresenceDescription and constraints
$objectRootAn alternative escalation policy configuration for a state, containing updated timing, value, and trigger details.
Additional keys: not allowed
periodstringRequired within parentThe 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_detailsarrayRequired within parentThe list of trigger configurations defined for the state escalation alert.
Maximum items: 3
trigger_details[]ModelEach itemExpand Create Blueprint States — request body — body states item state escalation trigger details item
valueintegerRequired within parentThe 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
FieldTypePresenceDescription and constraints
$objectRootAn automation action reference used in update operations, identified by its **id** and an optional **name**.
Additional keys: allowed
idstringOptionalThe unique identifier of the automation action configured for the trigger.
Maximum length: 255
Pattern: [0-9]+
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the action configured for the automation trigger.
Maximum length: 100
name (anyOf 2)nullAlternativeThe 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
FieldTypePresenceDescription and constraints
$objectRootAlternate trigger configuration for state escalation updates, specifying timing and actions.
Additional keys: not allowed
actionsarrayRequired within parentThe list of actions configured to trigger during a state escalation alert for the specified execution type.
Maximum items: 5
actions[]JSONEach item
actions[] (anyOf 1)ModelAlternativeExpand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: sla
actions[] (anyOf 2)ModelAlternativeExpand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: circuits, whatsapp, sms
actions[] (anyOf 3)ModelAlternativeExpand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: email notifications
actions[] (anyOf 4)ModelAlternativeExpand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: tasks
actions[] (anyOf 5)ModelAlternativeExpand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: field updates
actions[] (anyOf 6)ModelAlternativeExpand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: webhooks
actions[] (anyOf 7)ModelAlternativeExpand Create Blueprint States — request body — body / states / item / state_escalation / trigger_details / item / actions / item / type: functions
execute_typestringRequired within parentRepresents 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
periodstringRequired within parentRepresents 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
valueintegerRequired within parentRepresents 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
FieldTypePresenceDescription and constraints
$objectRootAn automation action reference used in update operations, identified by its **id** and an optional **name**.
Additional keys: allowed
idstringOptionalThe unique identifier of the automation action configured for the trigger.
Maximum length: 255
Pattern: [0-9]+
namestring or nullOptionalThe name of the action configured for the automation trigger.
Maximum length: 100

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.

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.