{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-query-result-contact-segment-schema.json",
  "title": "QueryResultContactSegment",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-contact-segments-api-openapi.yml#/components/schemas/QueryResultContactSegment",
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContactSegment"
      }
    },
    "page": {
      "type": "integer"
    },
    "pageSize": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    }
  },
  "$defs": {
    "ContactSegment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the segment",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Segment name"
        },
        "description": {
          "type": "string",
          "description": "Segment description"
        },
        "count": {
          "type": "integer",
          "description": "Number of contacts in the segment",
          "readOnly": true
        },
        "lastCalculatedAt": {
          "type": "string",
          "description": "When the segment was last calculated (Unix time)",
          "readOnly": true
        },
        "elements": {
          "type": "array",
          "description": "Segment filter criteria",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        },
        "folderId": {
          "type": "string",
          "description": "Containing folder identifier",
          "readOnly": true
        },
        "createdAt": {
          "type": "string",
          "description": "Creation timestamp (Unix time)",
          "readOnly": true
        },
        "updatedAt": {
          "type": "string",
          "description": "Last update timestamp (Unix time)",
          "readOnly": true
        },
        "depth": {
          "type": "string",
          "description": "Level of detail returned",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Asset type in Eloqua",
          "readOnly": true
        }
      }
    }
  }
}