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

# Update funnel under kanban namespace

> Updates a funnel. Administrators may update any funnel; `kanban_manage` may update only assigned funnels and cannot change the default or visibility mode.



## OpenAPI

````yaml /openapi/application.json patch /api/v1/accounts/{account_id}/kanban/funnels/{id}
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/kanban/funnels/{id}:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
      - name: id
        in: path
        required: true
        schema:
          type: number
        description: Funnel ID
        example: 1
    patch:
      tags:
        - Funnels
      summary: Update funnel under kanban namespace
      description: >-
        Updates a funnel. Administrators may update any funnel; `kanban_manage`
        may update only assigned funnels and cannot change the default or
        visibility mode.
      operationId: update-kanban-namespace-funnel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - funnel
              properties:
                funnel:
                  type: object
                  properties:
                    name:
                      type: string
                    description:
                      type: string
                    active:
                      type: boolean
                    is_default:
                      type: boolean
                    unassigned_visibility:
                      type: string
                      enum:
                        - everyone
                        - assigned_only
                      description: Administrator-only visibility mode for unassigned items.
                    stages:
                      type: object
                      additionalProperties:
                        type: object
                    settings:
                      type: object
                      properties:
                        agents:
                          type: array
                          description: >-
                            Selected users as IDs or objects containing an ID;
                            each must access at least one configured inbox.
                          items:
                            oneOf:
                              - type: number
                              - type: object
                                required:
                                  - id
                                properties:
                                  id:
                                    type: number
                        inboxes:
                          type: array
                          description: >-
                            Selected inboxes as IDs or objects containing an ID,
                            used to determine eligible agents.
                          items:
                            oneOf:
                              - type: number
                              - type: object
                                required:
                                  - id
                                properties:
                                  id:
                                    type: number
                      additionalProperties: true
                    global_custom_attributes:
                      type: array
                      items:
                        type: object
            example:
              funnel:
                name: Sample resource
                description: Sample text
                active: true
                is_default: true
                unassigned_visibility: everyone
                stages:
                  source: api
                  segment: enterprise
                settings:
                  agents:
                    - 1
                  inboxes:
                    - 1
                global_custom_attributes:
                  - source: api
                    segment: enterprise
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/funnel'
              example:
                id: 1
                name: Sample resource
                description: Sample text
                account_id: 1
                active: true
                is_default: true
                unassigned_visibility: everyone
                stages:
                  source: api
                  segment: enterprise
                settings:
                  agents:
                    - 1
                  inboxes:
                    - 1
                  contact_panel_contact_wide_items: true
                capabilities:
                  can_edit: true
                  can_create: true
                  can_delete: true
                  can_change_visibility: true
                  can_set_default: true
                global_custom_attributes:
                  - source: api
                    segment: enterprise
                created_at: '2026-05-20T12:00:00Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Unauthorized
        '403':
          description: Forbidden by Kanban permissions or protected funnel fields
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Forbidden
        '404':
          description: Funnel not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Resource not found
        '422':
          description: >-
            Validation error, including an agent without access to any
            configured inbox
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    funnel:
      type: object
      properties:
        id:
          type: number
          description: Funnel ID
        name:
          type: string
          description: Funnel name
        description:
          type: string
          description: Funnel description
        account_id:
          type: number
          description: Related account ID
        active:
          type: boolean
          description: Whether the funnel is active
        is_default:
          type: boolean
          description: Whether the funnel is the default one for account
        unassigned_visibility:
          type: string
          enum:
            - everyone
            - assigned_only
          default: everyone
          description: >-
            Visibility mode for unassigned items and linked conversations
            without an assignee; only administrators can change it
        stages:
          type: object
          description: Stage map keyed by stage id
          additionalProperties:
            type: object
        settings:
          type: object
          description: Funnel settings, including the selected agents and inboxes
          properties:
            agents:
              type: array
              description: >-
                Selected users as IDs or objects containing an ID; each user
                must have access to at least one configured inbox
              items:
                oneOf:
                  - type: number
                  - type: object
                    required:
                      - id
                    properties:
                      id:
                        type: number
            inboxes:
              type: array
              description: >-
                Selected inboxes as IDs or objects containing an ID, used to
                determine eligible funnel agents
              items:
                oneOf:
                  - type: number
                  - type: object
                    required:
                      - id
                    properties:
                      id:
                        type: number
            contact_panel_contact_wide_items:
              type: boolean
              default: false
              description: >-
                Whether ContactPanel may expand this funnel's open items across
                every conversation of the selected contact
          additionalProperties: true
        capabilities:
          type: object
          description: Server-calculated capabilities for the authenticated user
          properties:
            can_edit:
              type: boolean
            can_create:
              type: boolean
            can_delete:
              type: boolean
            can_change_visibility:
              type: boolean
            can_set_default:
              type: boolean
        global_custom_attributes:
          type: array
          description: Global attributes available for items in this funnel
          items:
            type: object
        created_at:
          type: string
          format: date-time
          description: Created at timestamp
        updated_at:
          type: string
          format: date-time
          description: Updated at timestamp
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.