> ## 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.

# Criar campo personalizado

> Cria um novo campo personalizado no sistema



## OpenAPI

````yaml https://api.jurichat.com/docs/client/openapi.json post /funnel-custom-field/
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-custom-field/:
    post:
      tags:
        - CRM
      summary: Criar campo personalizado
      description: Cria um novo campo personalizado no sistema
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Nome do campo personalizado.
                type:
                  type: string
                  description: Tipo do campo (texto, select, data, etc.).
                options:
                  anyOf:
                    - anyOf:
                        - type: string
                        - type: number
                        - type: boolean
                      nullable: true
                    - type: array
                      items:
                        anyOf:
                          - type: string
                          - type: number
                          - type: boolean
                        nullable: true
                    - type: array
                      items:
                        type: object
                        additionalProperties:
                          anyOf:
                            - type: string
                            - type: number
                            - type: boolean
                          nullable: true
                    - type: object
                      additionalProperties:
                        anyOf:
                          - type: string
                          - type: number
                          - type: boolean
                        nullable: true
                  description: Opções do campo, quando aplicável.
                required:
                  type: boolean
                  default: false
                  description: >-
                    Se marcado, o card só sai da etapa inicial com este campo
                    preenchido.
                funnelId:
                  type: string
                  pattern: ^[cC][^\s-]{8,}$
                  description: ID do funil.
              required:
                - name
                - type
                - funnelId
              additionalProperties: false
        required: true
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^[cC][^\s-]{8,}$
                  name:
                    type: string
                  type:
                    type: string
                  options:
                    anyOf:
                      - anyOf:
                          - type: string
                          - type: number
                          - type: boolean
                        nullable: true
                      - type: array
                        items:
                          anyOf:
                            - type: string
                            - type: number
                            - type: boolean
                          nullable: true
                      - type: array
                        items:
                          type: object
                          additionalProperties:
                            anyOf:
                              - type: string
                              - type: number
                              - type: boolean
                            nullable: true
                      - type: object
                        additionalProperties:
                          anyOf:
                            - type: string
                            - type: number
                            - type: boolean
                          nullable: true
                  required:
                    type: boolean
                  funnelId:
                    type: string
                    pattern: ^[cC][^\s-]{8,}$
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - name
                  - type
                  - required
                  - funnelId
                  - createdAt
                  - updatedAt
                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
        '409':
          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.

````