Skip to content

Latest commit

 

History

History
70 lines (55 loc) · 3.47 KB

File metadata and controls

70 lines (55 loc) · 3.47 KB
author spgraph-docs-team
description Represents a specific version of a driveItem.
title driveItemVersion resource type
ms.localizationpriority medium
ms.subservice sharepoint
doc_type resourcePageType
ms.date 07/22/2024

driveItemVersion resource type

Namespace: microsoft.graph

[!INCLUDE beta-disclaimer]

Represents a specific version of a driveItem.

Methods

Method Return type Description
List driveItemVersion collection Retrieve the versions of a file.
Get driveItemVersion Retrieve the metadata for a specific version of a driveItem.
Download version download URL Retrieve the contents of a specific version of a driveItem.
Restore version None Restore a previous version of a driveItem to be the current version.

Properties

Property Type Description
id String The ID of the version. Read-only.
lastModifiedBy identitySet Identity of the user who last modified the version. Read-only.
lastModifiedDateTime DateTimeOffset Date and time when the version was last modified. Read-only.
publication publicationFacet Indicates the publication status of this particular version. Read-only.
size Int64 Indicates the size of the content stream for this version of the item.

Relationships

Relationship Type Description
content Stream The content stream of the version.

JSON representation

The following JSON representation shows the resource type.

{
  "content": {"@odata.type": "Edm.Stream"},
  "id": "String",
  "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)",
  "publication": {"@odata.type": "microsoft.graph.publicationFacet"},
  "size": "Int64"
}