{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-exchange/json-schema/microsoft-exchange-mail-folder-collection-response-schema.json",
  "title": "MailFolderCollectionResponse",
  "description": "Collection of mail folders",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-exchange-mail-folders-api-openapi.yml#/components/schemas/MailFolderCollectionResponse",
  "type": "object",
  "properties": {
    "@odata.context": {
      "type": "string"
    },
    "@odata.nextLink": {
      "type": "string",
      "format": "uri"
    },
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MailFolder"
      }
    }
  },
  "$defs": {
    "MailFolder": {
      "type": "object",
      "description": "A mail folder in a user's mailbox",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "The mail folder's unique identifier"
        },
        "displayName": {
          "type": "string",
          "description": "The mail folder's display name"
        },
        "parentFolderId": {
          "type": "string",
          "readOnly": true,
          "description": "The unique identifier for the parent mail folder"
        },
        "childFolderCount": {
          "type": "integer",
          "readOnly": true,
          "description": "The number of immediate child mail folders"
        },
        "totalItemCount": {
          "type": "integer",
          "readOnly": true,
          "description": "The number of items in the mail folder"
        },
        "unreadItemCount": {
          "type": "integer",
          "readOnly": true,
          "description": "The number of unread items in the mail folder"
        },
        "isHidden": {
          "type": "boolean",
          "description": "Indicates whether the mail folder is hidden"
        }
      }
    }
  }
}