Skip to content

More examples for Sharepoint Sites - Drives #1594

Open
@hamrak

Description

@hamrak

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions