Zoho: Create a Blueprint
Zoho blueprints.postBlueprint: arguments, response, policy and SDK examples.
← Blueprints operations · Get started
Operation zoho.postblueprint
Provider route: POST /crm/v8/settings/blueprints. 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["blueprints"]["postBlueprint"]>[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.blueprints.postBlueprint(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.blueprints.post_blueprint(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
headers | object | Optional | Additional keys: not allowed |
headers.X-ZOHO-SERVICE | string | Optional | One of: automation |
body | Model | Optional | Expand Create a Blueprint — request body — body |
Referenced models: Create a Blueprint — 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 |
|---|---|---|---|
$ | Model | Root | Expand Create a Blueprint — response body |
Referenced models: Create a Blueprint — response body
Schemas
Section titled “Schemas”64 more schemas are linked from the tables above, on the schema pages.
Create a Blueprint — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the request body used to create a Blueprint. Additional keys: not allowed |
blueprints | array | Required within parent | Represents the root element that contains the details required to create the Blueprint. Maximum items: 1 |
blueprints[] | Model | Each item | Expand Create a Blueprint — request body — body blueprints item |
Referenced models: Create a Blueprint — request body — body blueprints item
Create a Blueprint — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the response returned when the Blueprint is successfully created. Additional keys: not allowed |
blueprints | array | Optional | Represents the list containing the Blueprint created in the response. Maximum items: 1 |
blueprints[] | Model | Each item | Expand Blueprint — response body — blueprints item |
Referenced models: Blueprint — response body — blueprints item
Create a Blueprint — request body — body blueprints item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the root element containing all the details required to create a Blueprint. Additional keys: not allowed |
api_name | string or null | Optional | Represents the API name of the Blueprint. Maximum length: 9 |
chart_data | Model | Optional | Expand Create a Blueprint — request body — body blueprints item chart data Contains chart data of the blueprint configured |
connections | array or null | Optional | Represents the list of connections made between two states and mapped with transitions. Maximum items: 1 |
connections[] | Model | Each item | Expand Create a Blueprint — request body — body blueprints item connections item |
continuous | boolean | Required within parent | Indicates whether the Blueprint is configured as continuous. |
criteria | Model | Optional | Expand Create a Blueprint — request body — body blueprints item criteria Contains details of blueprint entry criteria |
description | string or null | Optional | Represents the description of the Blueprint. Maximum length: 1000 |
field | Model | Required within parent | Expand Create a Blueprint — request body — body blueprints item field Contains details of the field for which blueprint is configured (Required) |
layout | Model | Required within parent | Expand Create a Blueprint — request body — body blueprints item layout Details of the layout for which blueprint is configured (Required) |
module | Model | Required within parent | Expand Create a Blueprint — request body — body blueprints item module Contains the details of the module for which blueprint is configured (Required) |
name | string | Required within parent | Represents the name of the Blueprint. Maximum length: 50 |
owners | array or null | Optional | Represents the list of owners configured for the Blueprint. Maximum items: 2 |
owners[] | Model | Each item | Expand Create a Blueprint — request body — body blueprints item owners item |
pipeline | Model | Optional | Expand Create a Blueprint — request body — body blueprints item pipeline Contains details of the pipeline for which blueprint is configured |
states | array or null | Optional | Represents the list of states associated with the Blueprint. Maximum items: 301 |
states[] | Model | Each item | Expand Create a Blueprint — request body — body blueprints item states item |
transitions | array or null | Optional | Represents the list of transitions associated with the Blueprint. Maximum items: 1 |
transitions[] | Model | Each item | Expand Create a Blueprint — request body — body blueprints item transitions item |
Referenced models: Create a Blueprint — request body — body blueprints item criteria, Create a Blueprint — request body — body blueprints item layout, Create a Blueprint — request body — body blueprints item owners item, Create a Blueprint — request body — body blueprints item pipeline, Create a Blueprint — request body — body blueprints item states item, Create a Blueprint — request body — body blueprints item transitions item, Create a Blueprint — request body — body blueprints item chart data, Create a Blueprint — request body — body blueprints item connections item, Create a Blueprint — request body — body blueprints item field, Create a Blueprint — request body — body blueprints item module
Blueprint — response body — blueprints item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an individual Blueprint's deletion status. Additional keys: not allowed |
code | string | Required within parent | Represents the status code indicating the outcome of the Blueprint deletion. Possible values: SUCCESS - Indicates that the Blueprint deletion completed successfully. Known values: SUCCESS |
details | Model | Required within parent | Expand Blueprint — response body — blueprints item details |
message | string | Required within parent | Represents the message describing the outcome of the Blueprint deletion. Maximum length: 255 |
status | string | Required within parent | Represents the status of the Blueprint deletion operation. Maximum length: 255 |
Referenced models: Blueprint — response body — blueprints item details
Create a Blueprint — request body — body blueprints item criteria
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the entry criteria configured for the Blueprint. Additional keys: not allowed |
comparator | string or null | Optional | Represents the comparator used to evaluate the criteria field against its configured value. Maximum length: 12 |
field | Model | Optional | Expand Create a Blueprint — request body — body blueprints item field Contains field details of criteria |
type | string or null | Optional | Represents the type of criteria used to determine whether a record satisfies the Blueprint entry conditions. Maximum length: 100 |
value | string or null | Optional | Represents the value configured for the criteria field used to evaluate the Blueprint entry condition. Maximum length: 3 |
Referenced models: Create a Blueprint — request body — body blueprints item field
Create a Blueprint — request body — body blueprints item layout
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the details of the layout for which the Blueprint is configured. Additional keys: not allowed |
api_name | string or null | Optional | Represents the API name of the layout for which the Blueprint is configured. Maximum length: 100 Minimum length: 1 Pattern: ^[A-Za-z][A-Za-z0-9_]*$ |
id | string | Required within parent | Represents the unique ID of the layout for which the Blueprint is configured. Format: int64 Maximum length: 25 Minimum length: 1 Pattern: [0-9]+ |
name | string or null | Optional | Represents the name of the layout for which the Blueprint is configured. Maximum length: 100 |
Create a Blueprint — request body — body blueprints item pipeline
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the details of the pipeline for which the Blueprint is configured. Additional keys: not allowed |
api_name | string or null | Optional | Represents the API name of the pipeline for which the Blueprint is configured. Maximum length: 100 |
display_value | string or null | Optional | Represents the display value of the pipeline for which the Blueprint is configured. Maximum length: 100 |
id | string | Required within parent | Represents the unique ID of the pipeline for which the Blueprint is configured. Format: int64 Maximum length: 25 Minimum length: 1 Pattern: [0-9]+ |
name | string or null | Optional | Represents the name of the pipeline for which the Blueprint is configured. Maximum length: 255 |
Create a Blueprint — request body — body blueprints item field
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the field details of the criteria. Additional keys: not allowed |
api_name | string or null | Optional | Represents the API name of the field for which the Blueprint is configured. Maximum length: 100 Pattern: ^[A-Za-z][A-Za-z0-9_]*$ |
field_label | string or null | Optional | Represents the label of the field for which the Blueprint is configured. Maximum length: 100 |
id | string | Required within parent | Represents the unique ID of the field for which the Blueprint is configured. Format: int64 Maximum length: 25 Minimum length: 1 Pattern: [0-9]+ |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.postblueprint. Catalog operation: postBlueprint. 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.