Zoho: Activate Blueprint
Zoho blueprintConfigActivate.activateBlueprint: arguments, response, policy and SDK examples.
← Blueprint config activate operations · Get started
Operation zoho.activateblueprint
Provider route: POST /crm/v8/settings/blueprints/{blueprintId}/actions/activate. 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["blueprintConfigActivate"]["activateBlueprint"]>[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.blueprintConfigActivate.activateBlueprint(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_config_activate.activate_blueprint(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]+ |
headers | object | Required within parent | Additional keys: not allowed |
headers.X-ZOHO-SERVICE | string | Required within parent | One of: automation |
body | Model | Optional | Expand Activate Blueprint — request body — body |
Referenced models: Activate 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 |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | Model | Alternative | Expand Activate Blueprint — response body — blueprints |
$ (anyOf 2) | null | Alternative |
Referenced models: Activate Blueprint — response body — blueprints
Schemas
Section titled “Schemas”Activate Blueprint — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Request body wrapper that provides a list of blueprints with their activation settings and required state mappings for transitioning from draft to active. Additional keys: not allowed |
blueprints | array | Required within parent | This is the root key of the request body (Required) Maximum items: 1 |
blueprints[] | Model | Each item | Expand Activate Blueprint — request body — body blueprints item |
Referenced models: Activate Blueprint — request body — body blueprints item
Activate Blueprint — response body — blueprints
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Response returned upon successful activation of a blueprint. Includes a blueprints array with per-blueprint result details. Additional keys: not allowed |
blueprints | array | Optional | Field: blueprints Maximum items: 1 |
blueprints[] | Model | Each item | Expand Activate Blueprint — response body — blueprints blueprints item |
Referenced models: Activate Blueprint — response body — blueprints blueprints item
Activate Blueprint — request body — body blueprints item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Activation settings for a blueprint, including an array of state remaps (map_states) and a flag indicating whether to move existing records (move_records). Additional keys: not allowed |
map_states | array or null | Optional | The current version will have active records associated with it, so when the draft is set to be activated, remap data is required, which contains the mapping of the picklist ID of the existing state and the replacing state. Maximum items: 1 |
map_states[] | Model | Each item | Expand Activate Blueprint — request body — body blueprints item map states item |
move_records | boolean | Required within parent | The current version will have active records associated with it, so when the draft is set to be activated, remap data is required (Required). |
Referenced models: Activate Blueprint — request body — body blueprints item map states item
Activate Blueprint — response body — blueprints blueprints item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for blueprints Additional keys: not allowed |
code | string | Optional | Field: code Maximum length: 255 |
details | Model | Optional | Expand Activate Blueprint — response body — blueprints blueprints item details |
message | string | Optional | Field: message Maximum length: 255 |
status | string | Optional | Field: status Maximum length: 255 |
Referenced models: Activate Blueprint — response body — blueprints blueprints item details
Activate Blueprint — request body — body blueprints item map states item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Associates an existing (current) state with a replacing (target) state by their picklist IDs. Each pair directs how active records should be moved during activation. Additional keys: not allowed |
existing_state | Model | Optional | Expand Activate Blueprint — request body — body blueprints item map states item existing state Contains data about the existing state |
replacing_state | Model | Optional | Expand Activate Blueprint — request body — body blueprints item map states item replacing state Contains data about the replacing state |
Referenced models: Activate Blueprint — request body — body blueprints item map states item existing state, Activate Blueprint — request body — body blueprints item map states item replacing state
Activate Blueprint — response body — blueprints blueprints item details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for details Additional keys: allowed |
id | string | Optional | Field: id Maximum length: 255 |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | Action name Maximum length: 50 |
name (anyOf 2) | null | Alternative | Action name Maximum length: 50 |
Activate Blueprint — request body — body blueprints item map states item existing state
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Reference object for the existing blueprint state, identified by picklist ID. Used as the source state in remapping during activation. Additional keys: not allowed |
id | string or null | Optional | Contains data about the existing state picklist ID Maximum length: 50 |
Activate Blueprint — request body — body blueprints item map states item replacing state
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Reference object for the replacing blueprint state, identified by picklist ID. Used as the target state in remapping during activation. Additional keys: not allowed |
id | string or null | Optional | Contains data about the replacing state picklist ID Format: int64 Maximum length: 50 Minimum length: 1 Pattern: ^[0-9]+$ |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.activateblueprint. Catalog operation: activateBlueprint. 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.
No-content response statuses: [204]