FolderView resource type
Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
The FolderView resource provides or sets recommendations on the user-experience of a folder.
It is available from the folder property of driveItem resources.
JSON representation
{
"sortBy": "default | name | type | size | takenOrCreatedDateTime | lastModifiedDateTime | sequence",
"viewType": "default | icons | details | thumbnails",
"sortOrder": "string"
}
Properties
Property | Type | Description |
---|---|---|
sortBy | string | The method by which the folder should be sorted. |
sortOrder | string | If true, indicates that items should be sorted in descending order. Otherwise, items should be sorted ascending. |
viewType | string | The type of view that should be used to represent the folder. |
You can use the sortBy property to control the sort order of the items in applications that respect the viewType facet.
sortBy values
The following values are defined for the sortBy property.
Value | Description |
---|---|
default |
The default sort order of the application. |
name |
Items should be arranged by the name property of the items. |
type |
Items should be arranged by the type of item. |
size |
Items should be arranged by the size property of the items. |
takenOrCreatedDateTime |
Items should be arranged by the takenDateTime property of the photo facet. If not available, the createdDateTime property should be used. |
lastModifiedDateTime |
Items should be arranged by the lastModifiedDateTime property of the items. |
sequence |
Items follow a custom sequence specified by the user. |
sortOrder values
The following values are defined for the sortOrder property.
Value | Description |
---|---|
ascending |
Items should be arranged in ascending order. |
descending |
Items should be arranged in descending order. |
viewType values
The following values are defined for the viewType property.
Value | Description |
---|---|
default |
The default view type for the application. |
icons |
A view that uses icons to represent driveItems. |
details |
A view with multiple columns that provide additional details about each item. |
thumbnails |
A view that uses larger thumbnails of driveItems to represent the items. |