DriveItemVersion resource type

The DriveItemVersion resource represents a specific version of a DriveItem.

Tasks on DriveItemVersion resources

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}/restore

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

JSON representation

{
  "content": { "@odata.type": "Edm.Stream" },
  "id": "string",
  "lastModifiedBy": { "@odata.type": "microsoft.graph.identitySet" },
  "lastModifiedDateTime": "2016-01-01T15:20:01.125Z",
  "publication": { "@odata.type": "microsoft.graph.publicationFacet" },
  "size": 12356
}

Properties

Property name Type Description
id string The ID of the version. Read-only.
lastModifiedBy IdentitySet Identity of the user which last modified the version. Read-only.
lastModifiedDateTime DateTimeOffset Date and time 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.
content Stream The content stream for this version of the item.