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

# Atualizar funil

> Atualiza um funil existente



## OpenAPI

````yaml https://api.jurichat.com/docs/client/openapi.json patch /funnel/{id}
openapi: 3.1.0
info:
  title: JuriChat API — Documentação para Integradores
  description: ''
  version: 1.0.0
servers:
  - url: https://api.jurichat.com
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /funnel/{id}:
    patch:
      tags:
        - CRM
      summary: Atualizar funil
      description: Atualiza um funil existente
      parameters:
        - schema:
            type: string
            minLength: 1
          in: path
          name: id
          required: true
          description: ID do funil.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  description: Novo nome do funil.
                cardConfig:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        minLength: 1
                        maxLength: 200
                        description: >-
                          Identificador do campo. Campos personalizados usam
                          `customField:<id>`.
                      visible:
                        type: boolean
                        description: Indica se o campo é exibido no card.
                    required:
                      - id
                      - visible
                    additionalProperties: false
                  maxItems: 50
                  description: >-
                    Array ordenado dos campos do card. A ordem do array define a
                    ordem de exibição. Enviar `[]` restaura o padrão.
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  inboxId:
                    type: string
                    pattern: ^[cC][^\s-]{8,}$
                  cardConfig:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 200
                          description: >-
                            Identificador do campo. Campos personalizados usam
                            `customField:<id>`.
                        visible:
                          type: boolean
                          description: Indica se o campo é exibido no card.
                      required:
                        - id
                        - visible
                      additionalProperties: false
                    maxItems: 50
                    description: >-
                      Array ordenado dos campos do card. A ordem do array define
                      a ordem de exibição. Enviar `[]` restaura o padrão.
                    nullable: true
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - name
                  - inboxId
                  - cardConfig
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  code:
                    type: string
                  details:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - type: object
                        properties: {}
                        additionalProperties: true
                    description: Detalhes adicionais do erro.
                required:
                  - message
                  - statusCode
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  code:
                    type: string
                  details:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                      - type: object
                        properties: {}
                        additionalProperties: true
                    description: Detalhes adicionais do erro.
                required:
                  - message
                  - statusCode
                additionalProperties: false
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-jurichat-api-key
      description: >-
        Chave de API do escritório (criada no painel). Envie o valor no header
        x-jurichat-api-key.

````