Getting Version of SharePoint Item

You can get a resource representation of a specific version of a backed-up SharePoint item with the specified ID.

Request

GET https://<hostname>:4443/v6/RestoreSessions/{restoreSessionId}/Organization/Sites/{siteId}/items/{itemId}/Versions/{versionId}

Request Headers

The request header must contain an authorization token of the current session.

Request Parameters

The following parameters must be specified in the URL of the request:

Parameter

Type

Description

restoreSessionId

string

Specifies the identification number of the restore session. For more information on how to get this parameter, see Getting Restore Sessions.

siteId

string

Specifies the identification number of the SharePoint site. For more information on how to get this parameter, see Getting Organization SharePoint Sites.

itemId

string

Specifies the identification number of the SharePoint item. For more information on how to get this parameter, see Getting SharePoint Items.

versionId

integer

Specifies the identification number of the SharePoint ite Getting All Versions of SharePoint Item m version. For more information on how to get this parameter, see .

Request Body

None.

Response

The server returns the following response to the client.

Response Codes

A successfully completed operation returns a response code 200 OK.

Response Headers

The response to this request contains the following headers. The response may also include additional standard HTTPS headers.

Header

Description

Content-length

The length of the response body.

Content-type

The media type and syntax of the response body message: application/json; charset=utf-8

Response Body

The response body contains the following properties:

Property

Type

Description

title

string

Specifies the title of the backed-up SharePoint item.

version

string

Specifies the version of the item.

versionId

integer

Specifies the ID of the item version.

id

string

Specifies the ID of the item.

name

string

Specifies the name of the item.

createdBy

string

Specifies the user that created the item.

creationTime

UTC

Specifies date and time when the item was created.

modifiedBy

string

Specifies the user performed the last modifications to the item.

modificationTime

UTC

Specifies date and time when the item was modified.

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

Example

The example returns a resource representation of a version of a SharePoint item with the specified ID.

Request:

GET https://abc.tech.local:4443/v6/RestoreSessions/2cd23751-b5bc-4024-ac11-7277953945a9/Organization/Sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/items/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dde42b25e5-5456-4e9f-91df-da6ea376840aee89936c-dd81-4678-9cb2-1b9d5573d28f/Versions/2

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK