Skip to content

Latest commit

 

History

History
114 lines (78 loc) · 3.81 KB

File metadata and controls

114 lines (78 loc) · 3.81 KB
author spgraph-docs-team
description Check out a driveItem resource to prevent others from editing the document, and your changes from being visible until the documented is checked-in.
title driveItem: checkout
ms.localizationpriority medium
ms.subservice sharepoint
doc_type apiPageType
ms.date 04/05/2024

driveItem: checkout

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in.

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

HTTP request

POST /drives/{driveId}/items/{itemId}/checkout
POST /groups/{groupId}/drive/items/{itemId}/checkout
POST /me/drive/items/{item-id}/checkout
POST /sites/{siteId}/drive/items/{itemId}/checkout
POST /users/{userId}/drive/items/{itemId}/checkout

Request body

No request body is required.

Example

This example checks out a file identified by {item-id}.

POST https://graph.microsoft.com/beta/drives/{drive-id}/items/{item-id}/checkout

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

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


Response

If successful, the API call returns 204 No content.

HTTP/1.1 204 No content

Remarks