{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-exchange/json-schema/microsoft-exchange-attachment-collection-response-schema.json",
  "title": "AttachmentCollectionResponse",
  "description": "Collection of attachments",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-exchange-attachments-api-openapi.yml#/components/schemas/AttachmentCollectionResponse",
  "type": "object",
  "properties": {
    "@odata.context": {
      "type": "string"
    },
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Attachment"
      }
    }
  },
  "$defs": {
    "Attachment": {
      "type": "object",
      "description": "A file or item attached to a message",
      "properties": {
        "@odata.type": {
          "type": "string",
          "description": "The OData type of the attachment. Use #microsoft.graph.fileAttachment for file attachments or #microsoft.graph.itemAttachment for item attachments."
        },
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "The attachment's unique identifier"
        },
        "name": {
          "type": "string",
          "description": "The display name of the attachment"
        },
        "contentType": {
          "type": "string",
          "description": "The MIME type of the attachment"
        },
        "size": {
          "type": "integer",
          "readOnly": true,
          "description": "The size in bytes of the attachment"
        },
        "isInline": {
          "type": "boolean",
          "description": "Indicates if the attachment is inline"
        },
        "lastModifiedDateTime": {
          "type": "string",
          "format": "date-time",
          "readOnly": true,
          "description": "The date and time the attachment was last modified"
        },
        "contentBytes": {
          "type": "string",
          "format": "byte",
          "description": "The base64-encoded contents of the file (for fileAttachment)"
        },
        "contentId": {
          "type": "string",
          "description": "The ID of the attachment in the Exchange store"
        }
      }
    }
  }
}