| 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 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Represents a specific version of a driveItem.
| 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. |
| 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. |
| Relationship | Type | Description |
|---|---|---|
| content | Stream | The content stream of the version. |
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"
}