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

# Update a pipeline



## OpenAPI

````yaml /api-reference/openapi.json patch /v2/pipelines/{id}
openapi: 3.1.0
info:
  title: Base39 API
  description: Base39 API
  version: 1.0.0
  contact:
    name: Base39 Team
    url: https://base39.com.br
    email: suporte@base39.com.br
  termsOfService: https://base39.com.br/termos
  license:
    name: Proprietary
    url: https://base39.com.br/termos
servers:
  - url: http://localhost:3000
    description: Local
  - url: https://api.dev.base39.cloud
    description: Development
  - url: https://api.base39.com.br
    description: Production
security:
  - OAuth2: []
tags:
  - name: pages
    description: Profiles and reports pages
  - name: pipelines
    description: Pipeline boards (kanban) of pages
  - name: blocks
    description: Blocks operations
  - name: search
    description: Search across content
  - name: targets
    description: Lookup targets via datasets
  - name: CognitoTriggers
    description: Cognito triggers
paths:
  /v2/pipelines/{id}:
    patch:
      tags:
        - pipelines
      summary: Update a pipeline
      operationId: pipeline_update
      parameters:
        - name: id
          required: true
          in: path
          description: Pipeline ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePipelineInput'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pipeline'
components:
  schemas:
    UpdatePipelineInput:
      type: object
      properties:
        name:
          type: string
          description: Pipeline name
        objectKind:
          type: string
          enum:
            - report
            - deal
          description: Object kind this board organizes.
        description:
          type: object
          description: Pipeline description
          nullable: true
        columns:
          description: Board columns (stages). Replaces the full set.
          type: array
          items:
            $ref: '#/components/schemas/PipelineColumnInput'
    Pipeline:
      type: object
      properties:
        object:
          type: string
          example: page
          description: Object type
          title: Object
          x-locale-pt-br-title: Objeto
        id:
          type: string
          example: p_abc123
          description: Unique identifier
          title: ID
          x-locale-pt-br-title: ID
        createdAt:
          format: date-time
          type: string
          example: '2024-01-15T10:30:00.000Z'
          description: Creation timestamp
          title: Created at
          x-locale-pt-br-title: Criado em
        updatedAt:
          format: date-time
          type: string
          example: '2024-01-15T14:45:00.000Z'
          description: Last update timestamp
          title: Updated at
          x-locale-pt-br-title: Atualizado em
        createdBy:
          type: object
          example:
            object: user
            id: u_abc123
            apiKeyId: bsk_abc123
          description: Principal who created this object
          properties:
            object:
              type: string
              enum:
                - user
                - service_account
              example: user
            id:
              type: string
              example: u_abc123
            apiKeyId:
              type: string
              example: bsk_abc123
          title: Created by
          x-locale-pt-br-title: Criado por
        updatedBy:
          type: object
          example:
            object: user
            id: u_abc123
            apiKeyId: bsk_abc123
          description: Principal who last updated this object
          properties:
            object:
              type: string
              enum:
                - user
                - service_account
                - webhook
                - stream
              example: user
            id:
              type: string
              example: u_abc123
            apiKeyId:
              type: string
              example: bsk_abc123
          title: Updated by
          x-locale-pt-br-title: Atualizado por
        objectKind:
          type: string
          enum:
            - report
            - deal
          description: Object kind this board organizes.
        name:
          type: string
          description: Pipeline name
        description:
          type: string
          nullable: true
        icon:
          description: Pipeline icon
          nullable: true
          allOf:
            - $ref: '#/components/schemas/IconOutput'
        columns:
          type: array
          items:
            $ref: '#/components/schemas/PipelineColumnOutput'
      required:
        - object
        - id
        - createdAt
        - updatedAt
        - objectKind
        - name
        - description
        - columns
    PipelineColumnInput:
      type: object
      properties:
        id:
          type: string
          description: Stable column ID. Omit when creating a new column.
        label:
          type: string
          description: Column label
          example: Em análise
        color:
          type: string
          description: Column color (hex)
          example: '#487ca5'
        icon:
          description: Column icon
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/FileInput'
            - $ref: '#/components/schemas/EmojiInput'
            - $ref: '#/components/schemas/DomainInput'
            - $ref: '#/components/schemas/DicebearIconInput'
            - $ref: '#/components/schemas/BrandInput'
            - $ref: '#/components/schemas/LucideIconInput'
            - $ref: '#/components/schemas/EmptyIconInput'
      required:
        - label
        - color
    IconOutput:
      type: object
      properties:
        type:
          type: string
          enum:
            - emoji
            - external
            - file_upload
            - domain
            - file
            - lucide
            - dicebear
            - brand
        emoji:
          type: string
          example: page_icon
        external:
          $ref: '#/components/schemas/ExternalFileOutput'
        file_upload:
          $ref: '#/components/schemas/FileUploadOutput'
        domain:
          type: string
          example: acme.com
        file:
          $ref: '#/components/schemas/InternalFileOutput'
        lucide:
          type: string
          example: file-text
        brand:
          type: string
          example: github
          description: Simple Icons brand slug (logo and color resolved automatically)
        dicebear:
          $ref: '#/components/schemas/DicebearIconPayloadOutput'
        background:
          type: string
          enum:
            - blue
            - red
            - pattern-red
            - pattern-blue
            - pattern-red-1
            - pattern-red-2
            - pattern-red-3
            - pattern-blue-1
            - pattern-blue-2
            - pattern-blue-3
        empty:
          type: boolean
          example: true
        updatedBy:
          type: string
          example: dataset:empresas
    PipelineColumnOutput:
      type: object
      properties:
        id:
          type: string
          description: Stable column ID
        label:
          type: string
          description: Column label
          example: Em análise
        color:
          type: string
          description: Column color (hex)
          example: '#487ca5'
        icon:
          description: Column icon
          nullable: true
          allOf:
            - $ref: '#/components/schemas/IconOutput'
      required:
        - id
        - label
        - color
    FileInput:
      type: object
      properties:
        file:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/InternalFileInput'
        external:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/ExternalFileInput'
        file_upload:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/FileUploadInput'
    EmojiInput:
      type: object
      properties: {}
    DomainInput:
      type: object
      properties:
        type:
          type: string
          enum:
            - domain
          example: domain
        domain:
          type: string
          example: acme.com
      required:
        - type
        - domain
    DicebearIconInput:
      type: object
      properties:
        type:
          type: string
          enum:
            - dicebear
        dicebear:
          $ref: '#/components/schemas/DicebearIconPayloadInput'
      required:
        - type
        - dicebear
    BrandInput:
      type: object
      properties:
        type:
          type: string
          enum:
            - brand
          example: brand
        brand:
          type: string
          example: github
      required:
        - type
        - brand
    LucideIconInput:
      type: object
      properties:
        type:
          type: string
          enum:
            - lucide
          example: lucide
        lucide:
          type: string
          example: workflow
      required:
        - type
        - lucide
    EmptyIconInput:
      type: object
      properties:
        empty:
          type: boolean
          example: true
      required:
        - empty
    ExternalFileOutput:
      type: object
      properties:
        url:
          type: string
          example: https://example.com/image.jpg
      required:
        - url
    FileUploadOutput:
      type: object
      properties:
        id:
          type: string
          example: fu_abc123
      required:
        - id
    InternalFileOutput:
      type: object
      properties:
        url:
          type: string
          example: https://s3.amazonaws.com/...
        expiryTime:
          type: string
          example: '2024-01-15T10:30:00.000Z'
      required:
        - url
        - expiryTime
    DicebearIconPayloadOutput:
      type: object
      properties:
        style:
          type: string
          enum:
            - notionists-neutral
        seed:
          type: string
          example: 0256de50-f90c-49a8-81f0-3988b2b89d8d
        backgroundColor:
          type: string
          example: b6e3f4,b6e3f4
          description: Hex color(s), comma-separated for gradients
        options:
          $ref: '#/components/schemas/DicebearIconOptionsOutput'
      required:
        - style
        - seed
        - backgroundColor
    InternalFileInput:
      type: object
      properties: {}
    ExternalFileInput:
      type: object
      properties: {}
    FileUploadInput:
      type: object
      properties: {}
    DicebearIconPayloadInput:
      type: object
      properties:
        style:
          type: string
          enum:
            - notionists-neutral
        options:
          $ref: '#/components/schemas/DicebearIconOptionsInput'
      required:
        - style
    DicebearIconOptionsOutput:
      type: object
      properties:
        brows:
          type: string
        eyes:
          type: string
        glasses:
          type: string
        lips:
          type: string
        nose:
          type: string
        flip:
          type: boolean
        rotate:
          type: number
        scale:
          type: number
        radius:
          type: number
        size:
          type: number
        backgroundType:
          type: string
          enum:
            - solid
            - gradientLinear
        backgroundRotation:
          type: array
          items:
            type: number
        translateX:
          type: number
        translateY:
          type: number
        clip:
          type: boolean
        randomizeIds:
          type: boolean
    DicebearIconOptionsInput:
      type: object
      properties: {}
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://id.local.base39.cloud/oauth2/authorize
          tokenUrl: https://id.local.base39.cloud/oauth2/token
          scopes:
            profile: Read user profile
            email: Read user email
            openid: OpenID authentication
      description: OAuth2 Authorization Code flow

````