# Create a custom field

Creates a new custom field for the given business. The created_by value will be set to PUBLIC_API.

Endpoint: POST /v1/businesses/{client_id}/custom-fields
Version: v1
Security: BearerAuth

## Path parameters:

  - `client_id` (integer, required)
    The ID of the business.
    Example: 123

## Request fields (application/json):

  - `name` (string, required)
    The display name for the custom field. Must be unique within the business.
    Example: "Project Code"

  - `field_type` (string, required)
    The type of the custom field.
    Enum: "LIST", "FREE_TEXT"

  - `budget_setting` (string)
    Controls which budgets this custom field is assigned to.
    Enum: "NONE", "SOME", "ALL_CURRENT_AND_NEW"

## Response 201 fields (application/json):

  - `id` (string)
    The unique identifier for this custom field.
    Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"

  - `name` (string)
    The display name of the custom field.
    Example: "Project Code"

  - `field_type` (string)
    The type of the custom field.
    Enum: "LIST", "FREE_TEXT"

  - `budget_setting` (string)
    Controls which budgets this custom field is assigned to.
    Enum: "NONE", "SOME", "ALL_CURRENT_AND_NEW"

  - `is_manager_only` (boolean)
    Whether this custom field is visible only to managers. Cannot be changed after creation.

  - `created_by` (string)
    The source that created this custom field.
    Enum: "MANUAL", "PUBLIC_API", "XERO", "MYOB", "QUICKBOOKS", "NETSUITE", "BUSINESS_CENTRAL"

  - `created` (string)
    The date and time when this custom field was created.
    Example: "2024-01-15T09:00:00Z"

  - `updated` (string)
    The date and time when this custom field was last updated.
    Example: "2024-01-15T09:00:00Z"


## Response 400 fields

## Response 401 fields

## Response 403 fields
