{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-create-custom-field-request-dto-schema.json",
  "title": "CreateCustomFieldRequestDto",
  "description": "Create a custom field",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-custom-fields-api-openapi.yml#/components/schemas/CreateCustomFieldRequestDto",
  "required": [
    "allowCustomValues",
    "global",
    "name",
    "required"
  ],
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Custom field name"
    },
    "description": {
      "type": "string",
      "description": "Custom field description"
    },
    "multiSelect": {
      "type": "boolean",
      "description": "Set as `true` if the custom field can have multiple selected values"
    },
    "allowCustomValues": {
      "type": "boolean",
      "description": "Set as `true` if the custom field can have custom values"
    },
    "minimumAmountForRequirement": {
      "type": "number",
      "description": "Minimum transaction amount where the custom field is required"
    },
    "required": {
      "type": "boolean",
      "description": "Set as `true` if the custom field is required for all budgets. The default value is `false`."
    },
    "global": {
      "type": "boolean",
      "description": "Set as `true` if the custom field applies to all budgets. The default value is `false`."
    },
    "values": {
      "type": "array",
      "description": "List of custom field values",
      "items": {
        "type": "string"
      }
    },
    "selectedBudgetIds": {
      "type": "array",
      "description": "List of budgets where the custom field is available. Set the budget ID or UUID values.",
      "items": {
        "type": "string"
      }
    },
    "requiredBudgetIds": {
      "type": "array",
      "description": "List of budgets where the custom field is required. Set the budget ID or UUID values.",
      "items": {
        "type": "string"
      }
    }
  }
}