| author | spgraph-docs-team |
|---|---|
| title | bundle resource type |
| description | Facet describing a driveItem that is a logical grouping of other driveItems |
| ms.localizationpriority | medium |
| ms.subservice | sharepoint |
| doc_type | resourcePageType |
| ms.date | 06/06/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
A bundle is a logical grouping of files used to share multiple files at once. It's represented by a driveItem entity containing a bundle facet and can be shared in the same way as any other driveItem.
The bundle facet on a driveItem identifies an item as a bundle and groups bundle-specific information into a single structure. It's only included on driveItem resources returned from the bundles endpoint.
The bundle resource type itself isn't an entity of its own, and is only a facet on a driveItem. The bundles collection on a drive is of type driveItem, not bundle.
| Method | Return type | Description |
|---|---|---|
| List bundles | driveItem collection | List all bundles in a drive |
| Get bundle | driveItem | Get bundle metadata |
| Create bundle | driveItem | Create a new bundle |
| Add item | None | Add a driveItem to an existing bundle |
| Remove item | None | Remove a driveItem from an existing bundle |
| Update bundle | driveItem | Update bundle metadata |
| Delete bundle | None | Delete bundle |
| Property | Type | Description |
|---|---|---|
| childCount | Int32 | Number of children contained immediately within this container. |
| album | album | If the bundle is an album, then the album property is included |
None.
{
"childCount": 3,
"album": { "@odata.type": "microsoft.graph.album" },
}