{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/athenahq-ai/json-schema/athenahq-ai-create-group-request-schema.json",
  "title": "CreateGroupRequest",
  "description": "Request body for creating a new group",
  "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/CreateGroupRequest",
  "type": "object",
  "required": [
    "name",
    "website_ids"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Name of the group."
    },
    "website_ids": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "List of website IDs to include in the group. All websites must belong to your organization. Duplicate IDs are collapsed to a single membership."
    },
    "billing_enabled": {
      "type": "boolean",
      "default": false,
      "description": "Whether to enable billing for this group"
    },
    "external_id": {
      "type": "string",
      "minLength": 1,
      "description": "**Partner-only.** An identifier from your own system to map to this Athena group. Accepted only when authenticating with an API key for an organization flagged as a partner. Sending this field as a direct customer returns `403 Forbidden`. Must be unique per resource type within your organization — duplicates return `409` with the existing resource in the payload."
    }
  }
}