Zoho: Clone Blueprint
Zoho blueprintsClone.cloneBlueprint: arguments, response, policy and SDK examples.
← Blueprints clone operations · Get started
Operation zoho.cloneblueprint
Provider route: POST /crm/v8/settings/blueprints/{blueprintId}/actions/clone. 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["blueprintsClone"]["cloneBlueprint"]>[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.blueprintsClone.cloneBlueprint(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_clone.clone_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: bigint 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 Clone Blueprint — request body — body |
Referenced models: Clone 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 Clone Blueprint — response body |
Referenced models: Clone Blueprint — response body
Schemas
Section titled “Schemas”Clone Blueprint — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a batch request that contains the clone settings for a single Blueprint in the blueprints array. Additional keys: not allowed |
blueprints | array | Required within parent | Represents the list of clone settings for the Blueprint to clone. The object specifies the clone settings for one Blueprint, including the module, name, clone type, and state mappings. Maximum items: 1 |
blueprints[] | Model | Each item | Expand Clone Blueprint — request body — body blueprints item |
Referenced models: Clone Blueprint — request body — body blueprints item
Clone Blueprint — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the response of a Blueprint clone request, containing the clone result for each requested Blueprint. Additional keys: not allowed |
blueprints | array | Optional | Represents the list of clone results. Each object reports the outcome of the clone request for one Blueprint. Maximum items: 1 |
blueprints[] | Model | Each item | Expand Clone Blueprint — response body — blueprints item |
Referenced models: Clone Blueprint — response body — blueprints item
Clone Blueprint — request body — body blueprints item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the settings for cloning a Blueprint, including the module, name, clone type, layout and pipeline references, selected field, and state mappings. Additional keys: not allowed |
field | Model | Required within parent | Expand Clone Blueprint — request body — body blueprints item field Specify the field data of the cloned blueprint (Required) |
layout | Model | Required within parent | Expand Clone Blueprint — request body — body blueprints item layout Specify the layout data of the cloned blueprint (Required) |
map_states | array or null | Optional | Specify the mapping of states from the existing Blueprint to the cloned Blueprint. Maximum items: 100 |
map_states[] | Model | Each item | Expand Clone Blueprint — request body — body blueprints item map states item |
module | string | Required within parent | Represents the API name of the module to which the cloned Blueprint belongs. Maximum length: 100 |
name | string | Required within parent | Represents the name of the cloned Blueprint. Maximum length: 14 |
pipeline | Model | Optional | Expand Clone Blueprint — request body — body blueprints item pipeline Specify the pipeline data of the cloned blueprint |
type | string | Required within parent | Represents the type of clone to create for the Blueprint, such as a standalone or dependent clone. Maximum length: 10 |
Referenced models: Clone Blueprint — request body — body blueprints item field, Clone Blueprint — request body — body blueprints item layout, Clone Blueprint — request body — body blueprints item pipeline, Clone Blueprint — request body — body blueprints item map states item
Clone Blueprint — response body — blueprints item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the result of a single Blueprint clone operation, including the status, code, message, and details of the outcome. Additional keys: not allowed |
code | string | Optional | Represents the code that indicates the outcome of the clone request for the Blueprint. Maximum length: 255 |
details | Model | Optional | Expand Clone Blueprint — response body — blueprints item details |
message | string | Optional | Represents the message that describes the outcome of the clone request for the Blueprint. Maximum length: 255 |
status | string | Optional | Indicates whether the clone request for the Blueprint was successful. Maximum length: 255 |
Referenced models: Clone Blueprint — response body — blueprints item details
Clone Blueprint — request body — body blueprints item field
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a field selector that identifies a field by its ID or API name in a Blueprint clone request. Additional keys: not allowed |
api_name | string or null | Optional | Represents the API name of the field in the cloned Blueprint. Maximum length: 100 |
id | string or null | Optional | Represents the ID of the field in the cloned Blueprint. Maximum length: 50 |
Clone Blueprint — request body — body blueprints item layout
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a layout selector that identifies the target layout for the cloned Blueprint by its ID or name. Additional keys: not allowed |
id | string or null | Optional | Represents the ID of the layout associated with the cloned Blueprint. Maximum length: 50 |
name | string or null | Optional | Represents the name of the layout associated with the cloned Blueprint. Maximum length: 100 |
Clone Blueprint — request body — body blueprints item pipeline
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a pipeline selector that identifies the target pipeline for the cloned Blueprint by its ID or name. Additional keys: not allowed |
id | string or null | Optional | Represents the ID of the pipeline associated with the cloned Blueprint. Maximum length: 50 Pattern: [0-9]+ |
name | string or null | Optional | Represents the name of the pipeline associated with the cloned Blueprint. Maximum length: 100 |
Clone Blueprint — request body — body blueprints item map states item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a mapping that pairs a source state token with a target state token to transform state values from the source Blueprint to the cloned Blueprint. Additional keys: not allowed |
clone_state | Model | Optional | Expand Clone Blueprint — request body — body blueprints item map states item clone state Map states data of new value to cloned blueprint |
existing_state | Model | Optional | Expand Clone Blueprint — request body — body blueprints item map states item existing state Map states data of existing blueprint |
Referenced models: Clone Blueprint — request body — body blueprints item map states item existing state, Clone Blueprint — request body — body blueprints item map states item clone state
Clone Blueprint — response body — blueprints item details
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents additional details about the clone outcome, including the ID of the cloned Blueprint and the fields that were not copied in the entry criteria, before-transition criteria, or during-transition criteria. Additional keys: not allowed |
id | string | Optional | Represents the ID of the cloned Blueprint. Maximum length: 255 |
uncopied_before_criteria_fields | null | Optional | Represents the fields in the before-transition criteria that were not copied to the cloned Blueprint. |
uncopied_during_transition_fields | null | Optional | Represents the fields in the during-transition criteria that were not copied to the cloned Blueprint. |
uncopied_entry_criteria_fields | null | Optional | Represents the fields in the Blueprint entry criteria that were not copied to the cloned Blueprint. |
Clone Blueprint — request body — body blueprints item map states item existing state
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the token generated from the actual_value of the source state that is remapped during Blueprint cloning. Additional keys: not allowed |
actual_value | string or null | Optional | Represents the actual value of an existing picklist state in the source Blueprint, which is remapped to a new state in the cloned Blueprint through map_states. Maximum length: 100 |
Clone Blueprint — request body — body blueprints item map states item clone state
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the token generated from the actual_value of the target state to which source state values are remapped in the cloned Blueprint. Additional keys: not allowed |
actual_value | string or null | Optional | Represents the actual value of the new picklist state in the cloned Blueprint, to which an existing state is remapped through map_states. Maximum length: 100 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.cloneblueprint. Catalog operation: cloneBlueprint. 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.