microsoftgraph / microsoftgraph/msgraph-sdk-php

More examples for Sharepoint Sites - Drives

Open
#1,594 0 comments 0 reactions 1 assignee View on GitHub

@shemogumbe is already working on this.

Since Oct 26, 2024.

status:waiting-for-triage
Dominant language
PHP
Stars
669
Forks
150
Avg merge
15h 21m
Merged PRs (30d)
3

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.