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. In OneDrive for Business and SharePoint Server 2016, sha1Hash, crc32Hash, and sha256Hash are not available. In OneDrive Personal, quickXorHash is not available.

Properties

Property Type Description
sha1Hash String SHA1 hash for the contents of the file (if available). Read-only.
sha256Hash String SHA256 hash for the contents of the file (if available). Read-only.
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 have changed (if available). Read-only.

Note: In cases where the hash values are not available, the hash values on an item will be updated after the item is downloaded.

JSON representation

The following JSON representation shows the resource type.

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