> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Zoho CRM: README

> Create Pipeline. Zoho CRM Pipeline Create Pipeline reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Create Pipeline.

<Info>
  Tool ID: `zoho_crm_pipeline_create_pipeline`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_pipeline_create_pipeline',
  {
    "layout_id": "layout_123",
    "pipeline": [
      {
        "display_value": "example",
        "maps": [
          {
            "id": "id_123"
          }
        ]
      }
    ]
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute zoho_crm_pipeline_create_pipeline --input '{
  "layout_id": "layout_123",
  "pipeline": [
    {
      "display_value": "example",
      "maps": [
        {
          "id": "id_123"
        }
      ]
    }
  ]
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "pipeline": [
      {
        "code": "SUCCESS",
        "details": {
          "id": "id_123"
        },
        "message": "Example message",
        "status": "success"
      }
    ]
  }
}
```

Use `deepline tools get zoho_crm_pipeline_create_pipeline --json` for the latest machine-readable contract.

## Input reference

Request body for updating or creating pipeline configurations with custom picklist values and stage mappings.

| Name                | Type     | Required | Default | Details                                                                                            |
| ------------------- | -------- | -------- | ------- | -------------------------------------------------------------------------------------------------- |
| `payload.layout_id` | `string` | Yes      | —       | Layout Id Format: `int64`.                                                                         |
| `payload.pipeline`  | `array`  | Yes      | —       | Array of pipeline picklist configurations to create or update. Minimum items: 1. Maximum items: 1. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body for updating or creating pipeline configurations with custom picklist values and stage mappings.",
    "properties": {
      "layout_id": {
        "type": "string",
        "description": "Layout Id",
        "format": "int64"
      },
      "pipeline": {
        "type": "array",
        "description": "Array of pipeline picklist configurations to create or update.",
        "minItems": 1,
        "maxItems": 1,
        "items": {
          "type": "object",
          "description": "Picklist value configuration for pipeline customization, including stage mappings.",
          "properties": {
            "display_value": {
              "type": "string",
              "description": "User-facing display name for the picklist value.",
              "format": "string"
            },
            "default": {
              "type": "boolean",
              "description": "Indicates if this picklist value should be set as the default option."
            },
            "maps": {
              "type": "array",
              "description": "Array of stage mappings defining which stages this picklist value connects to and their sequence.",
              "minItems": 1,
              "maxItems": 200,
              "items": {
                "type": "object",
                "description": "Mapping configuration for associating a picklist value with a specific pipeline stage.",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique identifier of the target pipeline stage to map.",
                    "format": "int64"
                  },
                  "display_value": {
                    "type": "string",
                    "description": "User-facing display name for the pipeline stage.",
                    "format": "string"
                  },
                  "sequence_number": {
                    "type": "integer",
                    "description": "Optional position of this stage mapping in the pipeline sequence (overrides default positioning).",
                    "format": "int32"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "display_value",
            "maps"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "layout_id",
      "pipeline"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                | Type        | Required | Default | Details                                                                                                            |
| ----------------------------------- | ----------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------ |
| `result.data`                       | `object`    | Yes      | —       | Batch success response for pipeline creation/update operations, maintaining 1:1 correspondence with request items. |
| `result.data.pipeline`              | `array`     | Yes      | —       | Array of individual success responses matching the request pipeline items. Minimum items: 1. Maximum items: 1.     |
| `result.data.pipeline[].code`       | `"SUCCESS"` | Yes      | —       | Machine-readable success code. Allowed: `SUCCESS`.                                                                 |
| `result.data.pipeline[].details`    | `object`    | Yes      | —       | Operation-specific success details including resource identifiers.                                                 |
| `result.data.pipeline[].details.id` | `string`    | Yes      | —       | Unique identifier of the newly created pipeline configuration. Format: `int64`.                                    |
| `result.data.pipeline[].message`    | `string`    | Yes      | —       | Human-readable confirmation of the successful operation. Format: `string`.                                         |
| `result.data.pipeline[].status`     | `"success"` | Yes      | —       | Overall status indicator. Allowed: `success`.                                                                      |
| `result.meta`                       | `object`    | No       | —       | Additional response metadata (status, paging).                                                                     |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Batch success response for pipeline creation/update operations, maintaining 1:1 correspondence with request items.",
        "properties": {
          "pipeline": {
            "type": "array",
            "description": "Array of individual success responses matching the request pipeline items.",
            "minItems": 1,
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Individual success response for a pipeline operation, mirroring the request structure.",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Machine-readable success code.",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "details": {
                  "type": "object",
                  "description": "Operation-specific success details including resource identifiers.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique identifier of the newly created pipeline configuration.",
                      "format": "int64"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable confirmation of the successful operation.",
                  "format": "string"
                },
                "status": {
                  "type": "string",
                  "description": "Overall status indicator.",
                  "enum": [
                    "success"
                  ]
                }
              },
              "required": [
                "code",
                "details",
                "message",
                "status"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "pipeline"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
