Getting SharePoint Libraries

You can get a resource representation of SharePoint document libraries to explore and restore.

Request

GET https://<hostname>:4443/v6/RestoreSessions/{restoreSessionId}/Organization/Sites/{siteId}/Libraries

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.

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

In the response body, the server returns a resource representation of the /RestoreSessions/{restoreSessionId}/Organization/Sites/{siteId}/Libraries collection resource.

Example

The example returns a resource representation of SharePoint document libraries to explore and restore.

Request:

GET https://abc.tech.local:4443/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/Organization/Sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/Libraries

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

{

 "offset": 0,

 "limit": 30,

 "results": [

  {

   "id": "37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c344441a867bcb-6a88-4744-adda-26c2c33e7cbb",

   "name": "Style Library",

   "url": "/sites/inconsiderable/Style Library",

   "description": "Use the style library to store style sheets, such as CSS or XSL files. The style sheets in this gallery can be used by this site or any of its subsites.",

   "creationTime": "2021-12-06T14:40:54Z",

   "_links": {

    "self": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/libraries/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c344441a867bcb-6a88-4744-adda-26c2c33e7cbb"

    },

    "parent": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444"

    },

    "folders": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/folders?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c344441a867bcb-6a88-4744-adda-26c2c33e7cbb"

    },

    "documents": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/documents?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c344441a867bcb-6a88-4744-adda-26c2c33e7cbb"

    }

   }

  },

  {

   "id": "37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444412cca9e5-a6a4-4c94-9add-9fc1bc498f1c",

   "name": "Site Pages",

   "url": "/sites/inconsiderable/SitePages",

   "description": "",

   "creationTime": "2021-12-06T14:41:07Z",

   "_links": {

    "self": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/libraries/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444412cca9e5-a6a4-4c94-9add-9fc1bc498f1c"

    },

    "parent": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444"

    },

    "folders": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/folders?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444412cca9e5-a6a4-4c94-9add-9fc1bc498f1c"

    },

    "documents": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/documents?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444412cca9e5-a6a4-4c94-9add-9fc1bc498f1c"

    }

   }

  },

  {

   "id": "37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444f2befbd0-c8b7-44c9-8b95-c7c8f4d262e6",

   "name": "Site Assets",

   "url": "/sites/inconsiderable/SiteAssets",

   "description": "Use this library to store files which are included on pages within this site, such as images on Wiki pages.",

   "creationTime": "2021-12-06T14:41:07Z",

   "_links": {

    "self": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/libraries/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444f2befbd0-c8b7-44c9-8b95-c7c8f4d262e6"

    },

    "parent": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444"

    },

    "folders": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/folders?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444f2befbd0-c8b7-44c9-8b95-c7c8f4d262e6"

    },

    "documents": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/documents?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444f2befbd0-c8b7-44c9-8b95-c7c8f4d262e6"

    }

   }

  },

  {

   "id": "37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444434443125-8062-45b4-bf6e-dd08f69a07fb",

   "name": "Documents",

   "url": "/sites/inconsiderable/Shared Documents",

   "description": "",

   "creationTime": "2021-12-06T14:41:08Z",

   "_links": {

    "self": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/libraries/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444434443125-8062-45b4-bf6e-dd08f69a07fb"

    },

    "parent": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444"

    },

    "folders": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/folders?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444434443125-8062-45b4-bf6e-dd08f69a07fb"

    },

    "documents": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/documents?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444434443125-8062-45b4-bf6e-dd08f69a07fb"

    }

   }

  },

  {

   "id": "37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444410ca6c5d-7e3a-46c6-8031-f67c09e6e701",

   "name": "Site Collection Documents",

   "url": "/sites/inconsiderable/SiteCollectionDocuments",

   "description": "This system library was created by the Publishing Resources feature to store documents that are used throughout the site collection.",

   "creationTime": "0001-01-01T00:00:00Z",

   "_links": {

    "self": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/libraries/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444410ca6c5d-7e3a-46c6-8031-f67c09e6e701"

    },

    "parent": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444"

    },

    "folders": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/folders?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444410ca6c5d-7e3a-46c6-8031-f67c09e6e701"

    },

    "documents": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/documents?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c3444410ca6c5d-7e3a-46c6-8031-f67c09e6e701"

    }

   }

  },

  {

   "id": "37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444d1160083-5077-4c10-8067-9b2885034268",

   "name": "Site Collection Images",

   "url": "/sites/inconsiderable/SiteCollectionImages",

   "description": "This system library was created by the Publishing Resources feature to store images that are used throughout the site collection.",

   "creationTime": "0001-01-01T00:00:00Z",

   "_links": {

    "self": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/libraries/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444d1160083-5077-4c10-8067-9b2885034268"

    },

    "parent": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444"

    },

    "folders": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/folders?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444d1160083-5077-4c10-8067-9b2885034268"

    },

    "documents": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/documents?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444d1160083-5077-4c10-8067-9b2885034268"

    }

   }

  },

  {

   "id": "37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c344440fb11a08-ecce-40cf-97e6-7535c86595ef",

   "name": "Form Templates",

   "url": "/sites/inconsiderable/FormServerTemplates",

   "description": "This library contains administrator-approved form templates that were activated to this site collection.",

   "creationTime": "2021-12-06T14:41:03Z",

   "_links": {

    "self": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/libraries/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c344440fb11a08-ecce-40cf-97e6-7535c86595ef"

    },

    "parent": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444"

    },

    "folders": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/folders?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c344440fb11a08-ecce-40cf-97e6-7535c86595ef"

    },

    "documents": {

     "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/documents?parentId=37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c344440fb11a08-ecce-40cf-97e6-7535c86595ef"

    }

   }

  }

 ],

 "_links": {

  "self": {

   "href": "/v6/RestoreSessions/742fe5ac-3ea6-422b-b204-757b15a47e56/organization/sites/37ceec3f-565e-4ee0-9913-221c701d574401a462f8-4a26-4360-9296-04f489c34444/libraries?offset=0&limit=30"

  }

 }

}