Skip to content

Latest commit

 

History

History
109 lines (76 loc) · 3.63 KB

File metadata and controls

109 lines (76 loc) · 3.63 KB
title fileStorageContainer: archive
description Archive an active fileStorageContainer.
author singhman-msft
ms.date 11/15/2024
ms.localizationpriority medium
ms.subservice onedrive
doc_type apiPageType

fileStorageContainer: archive

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Archive an active fileStorageContainer.

This action updates the archivalDetails.

[!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]

[!INCLUDE app-permissions]

Note

When delegated permissions are used, only members who are assigned the PrincipalOwner or Owner role can call this method.

HTTP request

POST /storage/fileStorage/containers/{containerId}/archive

Request body

Don't supply a request body for this method.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Response

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

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/beta/storage/fileStorage/containers/b!d2XNj_LW80yZbxDjj4Uj4E1ZFa6_76xEroXu_lX_DFE59ZD-2EcGRZlA0R8Vm3f0/archive

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

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

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

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

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

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


Response

The following example shows the response.

HTTP/1.1 204 No Content