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

Represents a specific version of a driveItem.

The following tasks are available for driveItemVersion resources.

Common task HTTP method
List versions GET /drive/items/{item-id}/versions
Get version GET /drive/items/{item-id}/versions/{version-id}
Get contents GET /drive/items/{item-id}/versions/{version-id}/content
Restore version POST /drive/items/{item-id}/versions/{version-id}/restoreversion

In the previous table, the examples use /drive, but there are many valid requests.

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"
}