Getting Version of SharePoint Folder

In this article

    You can get a resource representation of a specific version of SharePoint folder with the specified ID.

    Request

    GET https://<hostname>:4443/GET /v6/RestoreSessions/{restoreSessionId}/Organization/Sites/{siteId}/Folders/{folderId}/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.

    folderId

    string

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

    versionId

    integer

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

    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

    id

    string

    Specifies the ID of the backed-up SharePoint folder.

    name

    string

    Specifies the name of the backed-up SharePoint folder.

    type

    folderType

    Specifies the type of the backed-up SharePoint folder:

    • listFolder
    • libraryFolder

    version

    string

    Specifies the version of the backed-up SharePoint folder.

    versionId

    integer

    Specifies the ID of the folder version.

    createdBy

    string

    Specifies the user created the folder.

    creationTime

    UTC

    Specifies date and time when the folder was created.

    modifiedBy

    string

    Specifies the user performed the last modifications to the folder.

    modificationTime

    UTC

    Specifies date and time when the folder 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 SharePoint folder for exploring and performing restore operations.

    Request:

    GET https://abc.tech.local:4443/v6/restoresessions/9aafc8f6-cfb2-4aae-a4e1-fb0fabefc104/organization/sites/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9/folders/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9a39d3ea8-ca68-4973-b72c-21135bc9e79ccedf25ab-373d-4564-81b3-f6a5947a0d91/Versions/2

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Response:

    200 OK

     

    Response Body:

    {

     "type": "ListFolder",

     "id": "7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9a39d3ea8-ca68-4973-b72c-21135bc9e79ccedf25ab-373d-4564-81b3-f6a5947a0d91",

     "version": "1.0",

     "versionId": 2,

     "name": "AB922B82-8406-4E49-B17B-9057BDF09503",

     "createdBy": "admin8",

     "creationTime": "2022-02-22T15:36:09Z",

     "modifiedBy": "System Account",

     "modificationTime": "2022-02-22T15:36:13Z",

     "_links": {

       "self": {

         "href": "/v6/restoresessions/9aafc8f6-cfb2-4aae-a4e1-fb0fabefc104/organization/sites/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9/folders/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9a39d3ea8-ca68-4973-b72c-21135bc9e79ccedf25ab-373d-4564-81b3-f6a5947a0d91"

       },

       "folders": {

         "href": "/v6/restoresessions/9aafc8f6-cfb2-4aae-a4e1-fb0fabefc104/organization/sites/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9/folders?parentId=7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9a39d3ea8-ca68-4973-b72c-21135bc9e79ccedf25ab-373d-4564-81b3-f6a5947a0d91"

       },

       "list": {

         "href": "/v6/restoresessions/9aafc8f6-cfb2-4aae-a4e1-fb0fabefc104/organization/sites/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9/lists/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9a39d3ea8-ca68-4973-b72c-21135bc9e79c"

       },

       "items": {

         "href": "/v6/restoresessions/9aafc8f6-cfb2-4aae-a4e1-fb0fabefc104/organization/sites/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9/items?parentId=7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9a39d3ea8-ca68-4973-b72c-21135bc9e79ccedf25ab-373d-4564-81b3-f6a5947a0d91"

       },

       "versions": {

         "href": "/v6/restoresessions/9aafc8f6-cfb2-4aae-a4e1-fb0fabefc104/organization/sites/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9/folders/7a780e6e-46be-4735-b542-aa7c4758e53d4774e7df-5416-47d1-8f69-ae4d92e582e9a39d3ea8-ca68-4973-b72c-21135bc9e79ccedf25ab-373d-4564-81b3-f6a5947a0d91/versions"

       }

     }

    }