GET /drives/{drive-id}/items/{item-id}/children
GET /groups/{group-id}/drive/items/{item-id}/children
GET /me/drive/items/{item-id}/children
GET /sites/{site-id}/drive/items/{item-id}/children
GET /users/{user-id}/drive/items/{item-id}/children
Optional query parameters
This method supports the $expand, $select, $skipToken, $top and $orderbyOData query parameters to customize the response.
Optional request headers
Name
Value
Description
if-none-match
etag
If this request header is included and the eTag (or cTag) provided matches the current tag on the file, an HTTP 304 Not Modified response is returned.
Examples
List children in the root of the current user's drive
To retrieve files in the root of the drive, use the root relationship on the drive, then access the children relationship.
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var children = await graphClient.Me.Drive.Root.Children
.Request()
.GetAsync();
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var children = await graphClient.Drives["{drive-id}"].Items["{item-id}"].Children
.Request()
.GetAsync();
GET /drives/{drive-id}/root:/{path-relative-to-root}:/children
Response
If successful, this method returns the list of items in the children collection of the target item.
The children collection will be composed of driveItem resources.
Note: If a collection exceeds the default page size (200 items), the @odata.nextLink property is returned in the response to indicate more items are available and provide the request URL for the next page of items.