{
  "type": "object",
  "description": "An analytics segment definition",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique segment identifier",
      "example": "abc123"
    },
    "name": {
      "type": "string",
      "description": "Display name of the segment",
      "example": "Example Title"
    },
    "description": {
      "type": "string",
      "description": "Description of the segment's purpose",
      "example": "A sample description."
    },
    "rsid": {
      "type": "string",
      "description": "The report suite this segment is based on",
      "example": "500123"
    },
    "owner": {
      "type": "object",
      "description": "The owner of an Analytics component",
      "properties": {
        "id": {
          "type": "integer",
          "description": "Owner user ID",
          "example": "abc123"
        },
        "name": {
          "type": "string",
          "description": "Owner display name",
          "example": "Example Title"
        },
        "login": {
          "type": "string",
          "description": "Owner login identifier",
          "example": "example_value"
        }
      }
    },
    "definition": {
      "type": "object",
      "description": "The segment rule definition",
      "example": "example_value"
    },
    "modified": {
      "type": "string",
      "description": "Last modification timestamp",
      "format": "date-time",
      "example": "2026-01-15T10:30:00Z"
    },
    "tags": {
      "type": "array",
      "example": [],
      "items": {
        "type": "object",
        "description": "A tag applied to an Analytics component",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Tag identifier",
            "example": "abc123"
          },
          "name": {
            "type": "string",
            "description": "Tag name",
            "example": "Example Title"
          },
          "description": {
            "type": "string",
            "description": "Tag description",
            "example": "A sample description."
          },
          "components": {
            "type": "array",
            "description": "List of components this tag is applied to",
            "example": [],
            "items": {
              "type": "object"
            }
          }
        }
      }
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Segment"
}