Zoho: Delete Blueprint States
Zoho blueprintStateConfig.deleteBlueprintStates: arguments, response, policy and SDK examples.
← Blueprint state config operations · Get started
Operation zoho.deleteblueprintstates
Provider route: DELETE /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"]["deleteBlueprintStates"]>[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.deleteBlueprintStates(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.delete_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]+ |
query | object | Required within parent | Additional keys: not allowed |
query.ids | array | Required within parent | Array of state IDs in CSV format, with a maximum of 100 unique IDs allowed. Maximum items: 100 Minimum items: 1 Unique items: true |
query.ids[] | string | Each item | A unique state ID. 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 |
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 Delete Blueprint States — response body — states — Blueprint States Delete Response |
$ (anyOf 2) | Model | Alternative | Expand Delete Blueprint States — response body — states — Blueprint States Delete Multi Status Response |
Referenced models: Delete Blueprint States — response body — states — Blueprint States Delete Multi Status Response, Delete Blueprint States — response body — states — Blueprint States Delete Response
Schemas
Section titled “Schemas”Delete Blueprint States — response body — states — Blueprint States Delete Multi Status Response
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the multi-status response returned when deleting multiple Blueprint states, where each entry in the **states** array independently indicates success or failure for the corresponding state. Additional keys: not allowed |
states | array | Optional | Represents the list of per-state deletion results, containing one entry for each state processed in the request. Maximum items: 100 |
states[] | JSON | Each item | |
states[] (anyOf 1) | Model | Alternative | Expand Delete a Blueprint state — response body — states item |
states[] (anyOf 2) | Model | Alternative | Expand Create Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error |
states (allOf 1) | JSON | All variants apply | Ensures at least one successful deletion result is present. |
states (allOf 2) | JSON | All variants apply | Ensures at least one invalid-ID error is present. |
Referenced models: Create Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error, Delete a Blueprint state — response body — states item
Delete Blueprint States — response body — states — Blueprint States Delete Response
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the response returned after deleting one or more Blueprint states, containing the results for each deleted state. Additional keys: not allowed |
states | array | Optional | Represents the list of Blueprint state objects affected by the delete operation. Maximum items: 2 |
states[] | Model | Each item | Expand Delete a Blueprint state — response body — states item |
Referenced models: Delete a Blueprint state — response body — states item
Create Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the error response returned when one or more of the provided state IDs are invalid. Additional keys: not allowed |
code | string | Required within parent | Error code Known values: INVALID_DATA |
details | object | Required within parent | Represents the details of the validation error, containing an object with the affected record **id**. Additional keys: not allowed |
details.id | string | Required within parent | Represents the ID of the invalid state that caused the error. Maximum length: 255 |
message | string | Required within parent | Represents the error message returned when an invalid state ID is provided. Possible values: the id given seems to be invalid - The supplied state ID does not correspond to a valid state in Zoho CRM. Known values: the id given seems to be invalid |
status | string | Required within parent | Represents the status of the response. Possible values: **error** - Indicates the request resulted in an error. Known values: error |
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
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 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.deleteblueprintstates. Catalog operation: deleteBlueprintStates. 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.