Zoho: Update Blueprint States
Zoho blueprintStateConfig.updateBlueprintStates: arguments, response, policy and SDK examples.
← Blueprint state config operations · Get started
Operation zoho.updateblueprintstates
Provider route: PUT /crm/v8/settings/blueprints/{blueprintId}/states. 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"]["updateBlueprintStates"]>[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.updateBlueprintStates(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_states(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]+ |
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 Blueprint States — request body — body |
Referenced models: Update Blueprint States — 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 |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | Model | Alternative | Expand Update Blueprint States — response body — states |
$ (anyOf 2) | object | Alternative | Returns a multi-status response for the Blueprint state update batch. Each item in the states array independently indicates success or failure for the corresponding state in the request. Additional keys: not allowed |
$ (anyOf 2).states | array | Required within parent | Represents the list of per-state update results, containing both successful update records and error entries. Maximum items: 25 |
$ (anyOf 2).states[] | JSON | Each item | |
$ (anyOf 2).states[] (anyOf 1) | Model | Alternative | Expand Delete a Blueprint state — response body — states item |
$ (anyOf 2).states[] (anyOf 2) | Model | Alternative | Expand Create Blueprint States — response body — states / states / item / code: INVALID DATA, status: error |
$ (anyOf 2).states[] (anyOf 3) | Model | Alternative | Expand Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: invalid data, status: error |
$ (anyOf 2).states[] (anyOf 4) | Model | Alternative | Expand Update Blueprint States — response body — states / states / item / code: MANDATORY NOT FOUND, message: The required data missing, status: error |
$ (anyOf 2).states[] (anyOf 5) | Model | Alternative | Expand Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: the value given is invalid, status: error |
$ (anyOf 2).states (allOf 1) | JSON | All variants apply | Ensures at least one successful state update result is present. |
$ (anyOf 2).states (allOf 2) | JSON | All variants apply | Ensures at least one error result is present. |
Referenced models: Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: the value given is invalid, status: error, Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: invalid data, status: error, Create Blueprint States — response body — states / states / item / code: INVALID DATA, status: error, Update Blueprint States — response body — states, Update Blueprint States — response body — states / states / item / code: MANDATORY NOT FOUND, message: The required data missing, status: error, Delete a Blueprint state — response body — states item
Schemas
Section titled “Schemas”13 more schemas are linked from the tables above, on the schema pages.
Update Blueprint States — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The batch request payload for updating multiple Blueprint states in a single operation. Additional keys: not allowed |
states | array | Required within parent | The list of state objects to include in the batch update request. Maximum 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 Blueprint States — response body — states / states / item / code: INVALID DATA, message: the value given is invalid, status: error
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The error response returned when the transition type provided in the request is invalid. Additional keys: not allowed |
code | string | Required within parent | The error code returned by the API. Possible values: **INVALID_DATA** - The request contains invalid data. Known values: INVALID_DATA |
details | Model | Required within parent | Expand Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: the value given is invalid, status: error details |
message | string | Required within parent | Represents the error message describing the issue. Possible values: the value given is invalid - The request was rejected because an invalid value was provided. Known values: the value given is invalid |
status | string | Required within parent | Represents the status of the response. Possible values: **error** - Indicates that the request resulted in an error. Known values: error |
Referenced models: Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: the value given is invalid, status: error details
Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: invalid data, status: error
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Error returned when the provided period value in escalation settings is invalid. Additional keys: not allowed |
code | string | Required within parent | Represents the error code returned when the escalation period data is invalid. Possible values: **INVALID_DATA** - The escalation period value provided in the request is not valid. Known values: INVALID_DATA |
details | Model | Required within parent | Expand Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: invalid data, status: error details |
message | string | Required within parent | Represents the error message returned when the escalation period value is invalid. Possible values: invalid data - The provided escalation period data does not meet the required format or constraints. Known values: invalid data |
status | string | Required within parent | Represents the status of the error response. Possible values: **error** - Indicates that the request resulted in an error. Known values: error |
Referenced models: Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: invalid data, status: error details
Create Blueprint States — response body — states / states / item / code: INVALID DATA, status: error
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The error response returned when invalid data is provided in a request. Contains the error **code**, **status**, **message**, and validation **details**. Additional keys: not allowed |
code | string | Required within parent | The error code returned when the request contains invalid data. Possible values: **INVALID_DATA** - The request was rejected because one or more submitted values are invalid. Known values: INVALID_DATA |
details | Model | Required within parent | Expand Create Blueprint States — response body — states / states / item / code: INVALID DATA, status: error details |
message | string | Required within parent | The error message describing the invalid value encountered. Possible values: the id given seems to be invalid - The provided ID does not match a valid record. the value given is invalid - The supplied field value is not accepted. invalid data - The request contains data that failed validation. Invalid data - The request contains data that failed validation. Known values: the id given seems to be invalid, the value given is invalid, invalid data, Invalid data |
status | string | Required within parent | Represents the status of the response. Possible values: **error** - Indicates the request resulted in an error. Known values: error |
Referenced models: Create Blueprint States — response body — states / states / item / code: INVALID DATA, status: error details
Update Blueprint States — response body — states
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response containing per-item results for state update operations. Additional keys: not allowed |
states | array | Optional | The list of Blueprint states returned in the update response. Maximum items: 50 |
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 — response body — states / states / item / code: MANDATORY NOT FOUND, message: The required data missing, status: error
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the error returned when a required action ID is absent from state escalation trigger details. Additional keys: not allowed |
code | string | Required within parent | Represents the error code indicating a mandatory field or value is missing. Possible values: **MANDATORY_NOT_FOUND** - The required action ID was not provided in the request. Known values: MANDATORY_NOT_FOUND |
details | Model | Required within parent | Expand Update Blueprint States — response body — states / states / item / code: MANDATORY NOT FOUND, message: The required data missing, status: error details |
message | string | Required within parent | Represents the error message returned when required data is missing. Possible values: The required data missing - Indicates that one or more required fields or parameters were absent in the request. Known values: The required data missing |
status | string | Required within parent | Represents the status of the error response. Possible values: **error** - Indicates the request resulted in an error. Known values: error |
Referenced models: Update Blueprint States — response body — states / states / item / code: MANDATORY NOT FOUND, message: The required data missing, status: error details
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
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
Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: the value given is invalid, status: error details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An object containing additional context about the error, including the **api_name**, **json_path**, and **supported_values** of the field that caused the validation failure. Additional keys: not allowed |
api_name | string | Required within parent | The API name of the field or parameter that caused the error. Maximum length: 255 |
json_path | string | Required within parent | The JSON path of the field in the request that caused the error. Maximum length: 1000 |
supported_values | array | Required within parent | The list of accepted values for the field or parameter that triggered the error. Maximum items: 25 |
supported_values[] | string | Each item | Represents a supported value associated with the error detail. Maximum length: 255 |
Create Blueprint States — response body — states / states / item / code: INVALID DATA, status: error details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An object containing additional details about the validation error, including the **api_name** and **json_path** of the field that caused the error. Additional keys: not allowed |
api_name | string | Required within parent | The API name of the field that contains the invalid value. Maximum length: 255 |
json_path | string | Required within parent | The JSON path of the field in the request body that contains the invalid value. Maximum length: 1000 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.updateblueprintstates. Catalog operation: updateBlueprintStates. 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.