{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-query-result-segment-rest10-schema.json",
  "title": "QueryResultSegment",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-application-1-0-contact-segments-api-openapi.yml#/components/schemas/QueryResultSegmentRest10",
  "properties": {
    "type": {
      "type": "string",
      "description": "The asset's type in Eloqua."
    },
    "elements": {
      "type": "array",
      "description": "Array of segment fields.",
      "items": {
        "$ref": "#/$defs/ContactSegmentRest10"
      }
    },
    "total": {
      "type": "integer",
      "description": "The total amount of results."
    },
    "pageSize": {
      "type": "integer",
      "description": "The page size."
    },
    "page": {
      "type": "integer",
      "description": "The specified page."
    }
  },
  "$defs": {
    "ContactSegmentRest10": {
      "title": "ContactSegment",
      "properties": {
        "type": {
          "type": "string",
          "description": "The asset's type in Eloqua. This is a read-only property. "
        },
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "Id of the contact segment. This is a read-only property."
        },
        "currentStatus": {
          "type": "string",
          "description": "The contact segment's current status. This is a read-only property."
        },
        "name": {
          "type": "string",
          "description": "The contact segment's name."
        },
        "description": {
          "type": "string",
          "description": "The description of the contact segment."
        },
        "permissions": {
          "type": "string",
          "description": "The permissions for the contact segment granted to your current instance. This is a read-only property."
        },
        "createdBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user who created the contact segment."
        },
        "createdAt": {
          "type": "string",
          "readOnly": true,
          "description": "The date and time the contact segment was created, expressed in Unix time."
        },
        "updatedBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user that last updated the contact segment."
        },
        "updatedAt": {
          "type": "string",
          "readOnly": true,
          "description": "Unix timestamp for the date and time the contact segment was last updated."
        },
        "depth": {
          "type": "string",
          "readOnly": true,
          "description": "Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: <code>minimal</code>, <code>partial</code>, and <code>complete</code>. Any other values passed are reset to <code>complete</code> by default. For more information, see <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=RequestDepth'>Request depth</a>."
        },
        "elements": {
          "type": "array",
          "description": "Array of contact segment elements.",
          "items": {
            "$ref": "#/$defs/SegmentElementRest10"
          }
        },
        "count": {
          "type": "string",
          "description": "The number of contacts in the contact segment. This is a read-only property."
        },
        "lastCalculatedAt": {
          "type": "string",
          "description": "The date and time of the most recent calculation. This is a read-only property."
        }
      }
    },
    "SegmentElementRest10": {
      "title": "SegmentElement",
      "properties": {
        "type": {
          "type": "string",
          "description": "The asset's type in Eloqua. This is a read-only property."
        },
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "Id of the contact segment element. This is a read-only property."
        },
        "currentStatus": {
          "type": "string",
          "description": "The contact segment element's current status. This is a read-only property."
        },
        "name": {
          "type": "string",
          "description": "The name of the contact segment element. This is a read-only property."
        },
        "description": {
          "type": "string",
          "description": "The description of the contact segment element."
        },
        "permissions": {
          "type": "string",
          "description": "The permissions for the contact segment element granted to your current instance. This is a read-only property."
        },
        "createdBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user who created the contact segment element."
        },
        "createdAt": {
          "type": "string",
          "readOnly": true,
          "description": "The date and time the contact segment element was created, expressed in Unix time."
        },
        "updatedBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user that last updated the contact segment element."
        },
        "updatedAt": {
          "type": "string",
          "readOnly": true,
          "description": "Unix timestamp for the date and time the contact segment element was last updated."
        },
        "depth": {
          "type": "string",
          "readOnly": true,
          "description": "Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: <code>minimal</code>, <code>partial</code>, and <code>complete</code>. Any other values passed are reset to <code>complete</code> by default. For more information, see <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=RequestDepth'>Request depth</a>."
        },
        "isIncluded": {
          "type": "string",
          "description": "The total amount of contacts within the segment element."
        },
        "count": {
          "type": "string",
          "description": "The number of contacts in the contact segment element. This is a read-only property."
        },
        "lastCalculatedAt": {
          "type": "string",
          "description": "The date and time the contact segment element was last calculated. This is a read-only property."
        }
      }
    }
  }
}