Skip to content

Zoho: Delete a Blueprint state

Zoho blueprintStateConfig.deleteBlueprintStateById: arguments, response, policy and SDK examples.

← Blueprint state config operations · Get started

Operation zoho.deleteblueprintstatebyid

Provider route: DELETE /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"]["deleteBlueprintStateById"]>[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.deleteBlueprintStateById(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_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

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Delete a Blueprint state — response body

Referenced models: Delete a Blueprint state — response body

Delete a Blueprint state — response body
FieldTypePresenceDescription and constraints
$objectRootThe response returned after deleting a specific Blueprint state, containing the outcome details for the deleted state.
Additional keys: not allowed
statesarrayOptionalThe list of Blueprint state objects affected by the delete operation.
Maximum items: 1
states[]ModelEach itemExpand Delete a Blueprint state — response body — states item

Referenced models: Delete a Blueprint state — response body — states item

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.deleteblueprintstatebyid. Catalog operation: deleteBlueprintStateById. 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.