Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 746 Bytes

File metadata and controls

19 lines (13 loc) · 746 Bytes
description Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest version. Current version is 6.x

GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);

com.microsoft.graph.drives.item.items.item.restore.RestorePostRequestBody restorePostRequestBody = new com.microsoft.graph.drives.item.items.item.restore.RestorePostRequestBody();
ItemReference parentReference = new ItemReference();
parentReference.setId("String");
restorePostRequestBody.setParentReference(parentReference);
restorePostRequestBody.setName("String");
var result = graphClient.drives().byDriveId("{drive-id}").items().byDriveItemId("{driveItem-id}").restore().post(restorePostRequestBody);