Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More examples for Sharepoint Sites - Drives #1594

Open
hamrak opened this issue Oct 4, 2024 · 0 comments
Open

More examples for Sharepoint Sites - Drives #1594

hamrak opened this issue Oct 4, 2024 · 0 comments
Assignees
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned

Comments

@hamrak
Copy link

hamrak commented Oct 4, 2024

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 hamrak added the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Oct 4, 2024
@shemogumbe shemogumbe self-assigned this Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned
Projects
None yet
Development

No branches or pull requests

2 participants