Add item to a bundle

Namespace: microsoft.graph

Add an additional driveItem from a drive to a bundle.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Not supported.
Delegated (personal Microsoft account) Files.ReadWrite, Files.ReadWrite.All
Application Not supported.

HTTP request

POST /drive/bundles/{bundle-id}/children

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of a driveItem object.

Response

If successful, this method returns a 204 No Content response code.

For information about error responses, see Microsoft Graph error responses and resource types.

Example

Request

The following is an example of a request that adds an existing item to the specified bundle.

POST https://graph.microsoft.com/v1.0/drive/bundles/{bundle-id}/children
Content-Type: application/json

{
  "id": "123456!87"
}

Response

The following is an example of the response.

HTTP/1.1 204 No Content