Skip to content

Latest commit

 

History

History
96 lines (62 loc) · 2.63 KB

File metadata and controls

96 lines (62 loc) · 2.63 KB
author spgraph-docs-team
title Add item to a bundle
description Add item to a bundle of driveItems.
ms.localizationpriority medium
ms.subservice sharepoint
doc_type apiPageType
ms.date 04/04/2024

Add item to a bundle

Namespace: microsoft.graph

Add an additional driveItem from a drive to a bundle.

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

HTTP request

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

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
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 example shows 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"
}

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

The following example shows the response.

HTTP/1.1 204 No Content