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

# Bulk create pipeline stages

> Creates stages for a pipeline in bulk.



## OpenAPI

````yaml post /v1/pipelines/{pipeline_id}/stages/bulk
openapi: 3.1.0
info:
  title: Octolane Public API
  version: 1.0.0
  description: >-
    OpenAPI specification for Octolane public APIs. These endpoints let external
    systems read CRM data and create or update accounts, contacts,
    opportunities, notes, and activities through the public API gateway.
  contact:
    name: Octolane
    url: https://octolane.com
servers:
  - url: https://api.octolane.com
    description: Public API gateway
security:
  - ApiKeyAuth: []
tags:
  - name: CRM
    description: >-
      Public endpoints for creating, bulk creating, listing, searching, and
      updating CRM data.
paths:
  /v1/pipelines/{pipeline_id}/stages/bulk:
    post:
      tags:
        - CRM
      summary: Bulk create pipeline stages
      description: Creates stages for a pipeline in bulk.
      operationId: bulkCreatePipelineStagesV1
      parameters:
        - name: pipeline_id
          in: path
          required: true
          description: Pipeline ID.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        description: Array of pipeline stages to create. Maximum 100 items.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StageBulkCreateInput'
      responses:
        '200':
          description: Pipeline stages were created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
        '201':
          description: Pipeline stages were created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
        '400':
          description: The request failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: >-
            The API key is missing, invalid, or not allowed to access this
            route.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: The route rate limit was exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    StageBulkCreateInput:
      type: array
      minItems: 1
      maxItems: 100
      items:
        $ref: '#/components/schemas/StageCreateInput'
    ApiResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
        data:
          description: Endpoint-specific response payload.
      additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        message:
          type: string
          example: Validation failed
        statusCode:
          type: integer
          example: 400
      additionalProperties: true
    StageCreateInput:
      type: object
      required:
        - label
      properties:
        label:
          type: string
          maxLength: 255
        color:
          type: string
          maxLength: 32
        stage_order:
          type:
            - integer
            - 'null'
          minimum: 1
        is_default:
          type: boolean
        probability:
          type:
            - number
            - 'null'
          minimum: 0
          maximum: 100
        stage_type:
          type: string
          enum:
            - default
            - positive
            - negative
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Public API key for the Octolane organization.

````