編輯

共用方式為


bundle resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

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.

Methods

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

Properties

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

JSON representation

{
  "childCount": 3,
  "album": { "@odata.type": "microsoft.graph.album" },
}