msgraph-sdk-php icon indicating copy to clipboard operation
msgraph-sdk-php copied to clipboard

More examples for Sharepoint Sites - Drives

Open hamrak opened this issue 1 year ago • 0 comments

How can i do this:

DELETE /sites/{site-id}/drive/items/{itemId}

Something like this doesn't work: $graphServiceClient->sites()->bySiteId('site-id')->drive()->items()->byDriveItemId('driveItem-id')->delete()->wait();

  • drive() has not items().

$graphServiceClient->sites()->bySiteId('site-id')->drive()->withUrl('https://...sharepoint.com/sites/...')->delete()->wait();

  • withUrl() has not delete()

$graphServiceClient->sites()->bySiteId('site-id')->drives()->byDriveId('drive-id')->delete()->wait();

  • byDriveId() has not delete()

Then how to do it?

Or how to do a POST /sites/{site-id}/drive/items/{parent-item-id}/children ?

Thanks.

hamrak avatar Oct 04 '24 21:10 hamrak