{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-update-custom-field-request-dto-schema.json",
  "title": "UpdateCustomFieldRequestDto",
  "description": "Update a custom field (Description added)",
  "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/UpdateCustomFieldRequestDto",
  "type": "object",
  "properties": {
    "minimumAmountForRequirement": {
      "type": [
        "number",
        "null"
      ],
      "description": "Minimum transaction amount where the custom field is required"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Custom field name"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Custom field description"
    },
    "allowCustomValues": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Set as `true` if the custom field can have custom values"
    },
    "required": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Set as `true` if the custom field is required for all budgets. The default value is `false`."
    },
    "global": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Set as `true` if the custom field applies to all budgets. The default value is `false`."
    },
    "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"
      }
    }
  }
}