Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 2.27 KB

File metadata and controls

68 lines (52 loc) · 2.27 KB
author spgraph-docs-team
description The File resource groups file-related data items into a single structure.
ms.date 09/10/2017
title File
ms.localizationpriority medium
doc_type resourcePageType
ms.subservice onedrive

File resource type

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

The File resource groups file-related data items into a single structure.

If a DriveItem has a non-null file facet, the item represents a file. In addition to other properties, files have a content relationship that contains the byte stream of the file.

Properties

Property Type Description
archiveStatus fileArchiveStatus The archive status of the file. The possible values are: notArchived, fullyArchived, reactivating, unknownFutureValue.
hashes hashes Hashes of the file's binary content, if available. Read-only.
mimeType string The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded. Read-only.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.file",
  "hashes": {
    "@odata.type": "microsoft.graph.hashes"
  },
  "mimeType": "String",
  "archiveStatus": "String"
}

Remarks

For more information about the facets on a DriveItem, see DriveItem.