{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/poptin/json-schema/poptin-update-field-request-schema.json",
  "title": "UpdateFieldRequest",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/poptin-api-openapi.yml#/components/schemas/UpdateFieldRequest",
  "type": "object",
  "properties": {
    "label": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 50
    },
    "default_value": {
      "type": "string",
      "description": "You should only apply a default property for properties you never want to be empty.\nWhen applied, default values will be applied to all contacts that do not have any value saved for this property.\nAll default values will be overridden once another value is provided either through conversions or manually.",
      "enum": [
        "1",
        "0"
      ]
    },
    "property_options": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "maxLength": 255
          },
          "value": {
            "type": "string",
            "enum": [
              "1",
              "0"
            ]
          }
        },
        "required": [
          "label"
        ]
      },
      "uniqueItems": true
    }
  }
}