Edit

Share via


hashes 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.

Groups available hashes into a single structure for an item.

Note

Not all services provide a value for all hash properties listed.

Properties

Property Type Description
crc32Hash String The CRC32 value of the file (if available). Read-only.
quickXorHash String A proprietary hash of the file that can be used to determine if the contents of the file change (if available). Read-only.
sha1Hash String SHA1 hash for the contents of the file (if available). Read-only.
sha256Hash String This property isn't supported. Don't use.

Note: quickXorHash is the only value that is guaranteed to be available for both OneDrive for work or school and OneDrive for home. To calculate quickXorHash for a file, see QuickXorHash snippet.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "crc32Hash": "string (hex)",
  "quickXorHash": "string (base64)",
  "sha1Hash": "string (hex)",
  "sha256Hash": "string (hex)"
}

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