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

# Criar campo personalizado de pessoas



## OpenAPI

````yaml https://api.juridiq.com.br/openapi.json post /person-custom-fields/
openapi: 3.1.0
info:
  title: Juridiq Server API (interno)
  description: Documentação técnica **interna** da API Juridiq Server
  version: 1.0.0
servers:
  - url: http://localhost:3001
    description: Development server
  - url: https://api.juridiq.com.br
    description: Production server
security:
  - bearerAuth: []
paths:
  /person-custom-fields/:
    post:
      tags:
        - Person Custom Fields
      summary: Criar campo personalizado de pessoas
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                  description: Nome do campo
                type:
                  type: string
                  enum:
                    - text
                    - longText
                    - date
                    - time
                    - dateTime
                    - number
                    - select
                    - multiSelect
                  description: Tipo do campo
                options:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 100
                  minItems: 1
                  maxItems: 100
                  description: Opções, quando o tipo aceita
              required:
                - name
                - type
              additionalProperties: false
        required: true
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: ID do campo personalizado
                  name:
                    type: string
                    description: Nome do campo
                  type:
                    type: string
                    enum:
                      - text
                      - longText
                      - date
                      - time
                      - dateTime
                      - number
                      - select
                      - multiSelect
                    description: Tipo do campo
                  options:
                    type: array
                    items:
                      type: string
                    nullable: true
                    description: Opções, quando o tipo aceita
                  isArchived:
                    type: boolean
                    description: Campo arquivado
                  createdAt:
                    type: string
                    format: date-time
                    description: Data de criação
                  updatedAt:
                    type: string
                    format: date-time
                    description: Data da última alteração
                required:
                  - id
                  - name
                  - type
                  - options
                  - isArchived
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  translateMessage:
                    type: string
                required:
                  - message
                  - statusCode
                  - translateMessage
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Insira o token JWT no formato: Bearer {token}'

````