Skip to content

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.

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 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_states(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]+
headersobjectRequired within parentAdditional keys: not allowed
headers.X-ZOHO-SERVICEstringRequired within parentOne of: automation
bodyModelOptionalExpand Update Blueprint States — request body — body

Referenced models: Update Blueprint States — 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
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Update Blueprint States — response body — states
$ (anyOf 2)objectAlternativeReturns 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).statesarrayRequired within parentRepresents the list of per-state update results, containing both successful update records and error entries.
Maximum items: 25
$ (anyOf 2).states[]JSONEach item
$ (anyOf 2).states[] (anyOf 1)ModelAlternativeExpand Delete a Blueprint state — response body — states item
$ (anyOf 2).states[] (anyOf 2)ModelAlternativeExpand Create Blueprint States — response body — states / states / item / code: INVALID DATA, status: error
$ (anyOf 2).states[] (anyOf 3)ModelAlternativeExpand Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: invalid data, status: error
$ (anyOf 2).states[] (anyOf 4)ModelAlternativeExpand Update Blueprint States — response body — states / states / item / code: MANDATORY NOT FOUND, message: The required data missing, status: error
$ (anyOf 2).states[] (anyOf 5)ModelAlternativeExpand Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: the value given is invalid, status: error
$ (anyOf 2).states (allOf 1)JSONAll variants applyEnsures at least one successful state update result is present.
$ (anyOf 2).states (allOf 2)JSONAll variants applyEnsures 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

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

Update Blueprint States — request body — body
FieldTypePresenceDescription and constraints
$objectRootThe batch request payload for updating multiple Blueprint states in a single operation.
Additional keys: not allowed
statesarrayRequired within parentThe list of state objects to include in the batch update request.
Maximum items: 1
states[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootThe error response returned when the transition type provided in the request is invalid.
Additional keys: not allowed
codestringRequired within parentThe error code returned by the API. Possible values: **INVALID_DATA** - The request contains invalid data.
Known values: INVALID_DATA
detailsModelRequired within parentExpand Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: the value given is invalid, status: error details
messagestringRequired within parentRepresents 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
statusstringRequired within parentRepresents 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
FieldTypePresenceDescription and constraints
$objectRootError returned when the provided period value in escalation settings is invalid.
Additional keys: not allowed
codestringRequired within parentRepresents 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
detailsModelRequired within parentExpand Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: invalid data, status: error details
messagestringRequired within parentRepresents 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
statusstringRequired within parentRepresents 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
FieldTypePresenceDescription and constraints
$objectRootThe error response returned when invalid data is provided in a request. Contains the error **code**, **status**, **message**, and validation **details**.
Additional keys: not allowed
codestringRequired within parentThe 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
detailsModelRequired within parentExpand Create Blueprint States — response body — states / states / item / code: INVALID DATA, status: error details
messagestringRequired within parentThe 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
statusstringRequired within parentRepresents 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
FieldTypePresenceDescription and constraints
$objectRootResponse containing per-item results for state update operations.
Additional keys: not allowed
statesarrayOptionalThe list of Blueprint states returned in the update response.
Maximum items: 50
states[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the error returned when a required action ID is absent from state escalation trigger details.
Additional keys: not allowed
codestringRequired within parentRepresents 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
detailsModelRequired within parentExpand Update Blueprint States — response body — states / states / item / code: MANDATORY NOT FOUND, message: The required data missing, status: error details
messagestringRequired within parentRepresents 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
statusstringRequired within parentRepresents 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
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

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

Update Blueprint States — response body — states / states / item / code: INVALID DATA, message: the value given is invalid, status: error details
FieldTypePresenceDescription and constraints
$objectRootAn 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_namestringRequired within parentThe API name of the field or parameter that caused the error.
Maximum length: 255
json_pathstringRequired within parentThe JSON path of the field in the request that caused the error.
Maximum length: 1000
supported_valuesarrayRequired within parentThe list of accepted values for the field or parameter that triggered the error.
Maximum items: 25
supported_values[]stringEach itemRepresents 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
FieldTypePresenceDescription and constraints
$objectRootAn 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_namestringRequired within parentThe API name of the field that contains the invalid value.
Maximum length: 255
json_pathstringRequired within parentThe JSON path of the field in the request body that contains the invalid value.
Maximum length: 1000

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.

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.