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

# Create custom field

> Create a custom field definition for a project.



## OpenAPI

````yaml /openapi.json post /custom-field
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /custom-field:
    post:
      tags:
        - Custom Fields
      summary: Create custom field
      description: Create a custom field definition for a project.
      operationId: createCustomField
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                projectId:
                  type: string
                name:
                  type: string
                type:
                  type: string
                  enum:
                    - text
                    - number
                    - date
                    - dropdown
                    - boolean
                required:
                  type: boolean
                  default: false
                defaultValue:
                  type: string
                options:
                  type: array
                  items:
                    type: string
              required:
                - projectId
                - name
                - type
      responses:
        '200':
          description: The created custom field
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomFieldDefinition'
        '400':
          description: Invalid body, or unknown project
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing project:update permission
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    CustomFieldDefinition:
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        name:
          type: string
        type:
          type: string
        required:
          type: boolean
        defaultValue:
          type:
            - string
            - 'null'
        options: {}
        position:
          type: number
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - projectId
        - name
        - type
        - required
        - defaultValue
        - position
        - createdAt
        - updatedAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````