| 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 |
Namespace: microsoft.graph
Add an additional driveItem from a drive to a bundle.
[!INCLUDE national-cloud-support]
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]
POST /drive/bundles/{bundle-id}/children| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
In the request body, supply a JSON representation of a driveItem object.
If successful, this method returns a 204 No Content response code.
For information about error responses, see Microsoft Graph error responses and resource types.
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]
The following example shows the response.
HTTP/1.1 204 No Content