Skip to content

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.

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 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.delete_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]+
queryobjectRequired within parentAdditional keys: not allowed
query.idsarrayRequired within parentArray 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[]stringEach itemA unique state ID.
Format: int64
Maximum length: 19
Minimum length: 1
Pattern: ^[0-9]+$
headersobjectRequired within parentAdditional keys: not allowed
headers.X-ZOHO-SERVICEstringRequired within parentOne of: automation

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 Delete Blueprint States — response body — states — Blueprint States Delete Response
$ (anyOf 2)ModelAlternativeExpand 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

Delete Blueprint States — response body — states — Blueprint States Delete Multi Status Response
FieldTypePresenceDescription and constraints
$objectRootRepresents 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
statesarrayOptionalRepresents the list of per-state deletion results, containing one entry for each state processed in the request.
Maximum items: 100
states[]JSONEach item
states[] (anyOf 1)ModelAlternativeExpand Delete a Blueprint state — response body — states item
states[] (anyOf 2)ModelAlternativeExpand Create Blueprint States — response body — states / states / item / code: INVALID DATA, message: the id given seems to be invalid, status: error
states (allOf 1)JSONAll variants applyEnsures at least one successful deletion result is present.
states (allOf 2)JSONAll variants applyEnsures 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the response returned after deleting one or more Blueprint states, containing the results for each deleted state.
Additional keys: not allowed
statesarrayOptionalRepresents the list of Blueprint state objects affected by the delete operation.
Maximum items: 2
states[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootRepresents the error response returned when one or more of the provided state IDs are invalid.
Additional keys: not allowed
codestringRequired within parentError code
Known values: INVALID_DATA
detailsobjectRequired within parentRepresents the details of the validation error, containing an object with the affected record **id**.
Additional keys: not allowed
details.idstringRequired within parentRepresents the ID of the invalid state that caused the error.
Maximum length: 255
messagestringRequired within parentRepresents 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
statusstringRequired within parentRepresents 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
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

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

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.

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.