{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe-captivate/json-schema/adobe-captivate-user-group-response-schema.json",
  "title": "UserGroupResponse",
  "description": "Single user group response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-captivate-user-groups-api-openapi.yml#/components/schemas/UserGroupResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/UserGroup"
    }
  },
  "$defs": {
    "UserGroup": {
      "type": "object",
      "description": "A group of users for organizing and targeting content",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique user group identifier"
        },
        "type": {
          "type": "string",
          "const": "userGroup"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "dateCreated": {
              "type": "string",
              "format": "date-time",
              "description": "Timestamp when the group was created"
            },
            "description": {
              "type": "string",
              "description": "Group description"
            },
            "name": {
              "type": "string",
              "description": "Group name"
            },
            "state": {
              "type": "string",
              "description": "Group state",
              "enum": [
                "Active",
                "Deleted"
              ]
            },
            "userCount": {
              "type": "integer",
              "description": "Number of users in the group"
            }
          }
        }
      }
    }
  }
}