{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thrivedesk/json-schema/thrivedesk-custom-field-update-schema.json",
  "title": "CustomFieldUpdate",
  "description": "`name` and `type` are immutable. Sending a changed value for either is\nrejected with 422.\n",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thrivedesk-openapi.yml#/components/schemas/CustomFieldUpdate",
  "type": "object",
  "properties": {
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 250
    },
    "is_required": {
      "type": "boolean"
    },
    "is_active": {
      "type": "boolean"
    },
    "default_value": {
      "description": "Type must match the field type (string, boolean, or number)."
    },
    "options": {
      "type": "array",
      "description": "Only for dropdown fields. Objects with `id: null` create new\noptions, and existing IDs update them.\n",
      "items": {
        "type": "object",
        "required": [
          "value"
        ],
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "value": {
            "type": "string",
            "maxLength": 255
          }
        }
      }
    },
    "conditions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "required": [
          "expected_value",
          "dependent_field_ids"
        ],
        "properties": {
          "expected_value": {
            "type": "string",
            "maxLength": 255
          },
          "dependent_field_ids": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      }
    }
  }
}