{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/athenahq-ai/json-schema/athenahq-ai-group-schema.json",
  "title": "Group",
  "description": "A group of websites in your organization",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/athenahq-ai-groups-api-openapi.yml#/components/schemas/Group",
  "type": "object",
  "required": [
    "id",
    "name",
    "orgId",
    "billingEnabled",
    "createdAt",
    "websites"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the group"
    },
    "name": {
      "type": "string",
      "description": "Display name of the group"
    },
    "orgId": {
      "type": "string",
      "format": "uuid",
      "description": "The organization ID the group belongs to"
    },
    "billingEnabled": {
      "type": "boolean",
      "description": "Whether billing is enabled for this group"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the group was created (UTC)"
    },
    "websites": {
      "type": "array",
      "description": "Websites associated with this group",
      "items": {
        "$ref": "#/$defs/GroupWebsite"
      }
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ],
      "description": "**Partner-only.** The partner-supplied identifier mapped to this group. Only present on responses to callers whose organization is flagged as a partner. Direct-customer responses omit the field entirely. `null` indicates no mapping exists for this group."
    }
  },
  "$defs": {
    "GroupWebsite": {
      "type": "object",
      "description": "A website associated with a group",
      "required": [
        "id",
        "websiteUrl",
        "websiteName"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier for the website"
        },
        "websiteUrl": {
          "type": "string",
          "description": "The URL of the website"
        },
        "websiteName": {
          "type": "string",
          "description": "Display name of the website"
        },
        "externalId": {
          "type": [
            "string",
            "null"
          ],
          "description": "**Partner-only.** The partner-supplied identifier mapped to this website. Only present on responses to callers whose organization is flagged as a partner. Direct-customer responses omit the field entirely. `null` indicates no mapping exists for this website."
        }
      }
    }
  }
}