{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/logicmonitor/main/json-schema/logicmonitor-dashboard-group-2-schema.json",
  "title": "DashboardGroup_2",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logicmonitor-dashboard-groups-api-openapi.yml#/components/schemas/DashboardGroup_2",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "template": {
      "description": "The template which is used for importing dashboard group",
      "type": "object"
    },
    "fullPath": {
      "description": "The full path of the dashboard group",
      "readOnly": true,
      "type": "string"
    },
    "userPermission": {
      "description": "The permission of the user that made the API call",
      "readOnly": true,
      "type": "string"
    },
    "widgetTokens": {
      "description": "The tokens assigned at the group level",
      "type": "array",
      "items": {
        "$ref": "#/$defs/WidgetToken_2"
      }
    },
    "name": {
      "description": "The name of the dashboard group",
      "type": "string"
    },
    "numOfDirectSubGroups": {
      "format": "int64",
      "description": "The number of groups directly under the Dashboard Group",
      "readOnly": true,
      "type": "integer"
    },
    "numOfDashboards": {
      "format": "int64",
      "description": "The number of dashboards that belong to the Dashboard Group and any sub-groups",
      "readOnly": true,
      "type": "integer"
    },
    "description": {
      "description": "This is a description of the dashboard group",
      "type": "string"
    },
    "id": {
      "format": "int32",
      "description": "The Id of the dashboard group ",
      "readOnly": true,
      "type": "integer"
    },
    "dashboards": {
      "description": "The dashboards that belong to the group",
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/DashboardData_2"
      }
    },
    "parentId": {
      "format": "int32",
      "description": "The Id of the parent dashboard group",
      "type": "integer"
    },
    "numOfDirectDashboards": {
      "format": "int64",
      "description": "The number of dashboards that belong directly to the Dashboard Group",
      "readOnly": true,
      "type": "integer"
    }
  },
  "$defs": {
    "DashboardData_2": {
      "description": "The dashboards that belong to the group",
      "readOnly": true,
      "type": "object",
      "properties": {
        "userPermission": {
          "description": "The permission of the user that made the API call",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "The name of the dashboard",
          "readOnly": true,
          "type": "string"
        },
        "sharable": {
          "description": "Whether or not the dashboard is sharable. This value will always be true unless the dashboard is a private dashboard",
          "readOnly": true,
          "type": "boolean"
        },
        "id": {
          "format": "int32",
          "description": "The Id of the dashboard",
          "readOnly": true,
          "type": "integer"
        }
      }
    },
    "WidgetTokenInheritance_2": {
      "description": "The widget token inherit list",
      "type": "object",
      "properties": {
        "fullpath": {
          "description": "The fullpath for the widget token",
          "readOnly": true,
          "type": "string"
        },
        "value": {
          "description": "The property value for the group",
          "readOnly": true,
          "type": "string"
        }
      }
    },
    "WidgetToken_2": {
      "description": "If useDynamicWidget=true, this field must at least contain tokens defaultDeviceGroup and defaultServiceGroup",
      "type": "object",
      "properties": {
        "inheritList": {
          "description": "The widget token inherit list",
          "type": "array",
          "items": {
            "$ref": "#/$defs/WidgetTokenInheritance_2"
          }
        },
        "name": {
          "description": "This is the name of the parent group of devices, if there is one established",
          "type": "string"
        },
        "type": {
          "description": "The values can be owned | inherit\nSpecifies the type of the widget",
          "readOnly": true,
          "type": "string"
        },
        "value": {
          "description": "This is the name of the child group of devices, if there is one",
          "type": "string"
        }
      }
    }
  }
}