Getting SharePoint Items
Returns a resource representation of a SharePoint item with the specified ID.
Request
GET https://<hostname>:4443/v5/RestoreSessions/{restoreSessionId}/Organization/Sites/{siteId}/Items/{itemId} |
Request Headers
The request header must contain an authorization token of the current session.
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
Property | Type | Description |
---|---|---|
Id | string | Specifies the ID of the backed-up SharePoint item. |
Parent | object[] | Specifies _links for the parent object. |
Version | int | Specifies the version of an item. |
CreatedBy | string | Specifies the user, which created the item. |
CreationTime | UTC | Specifies date and time when the item was created. |
ModifiedBy | string | Specifies the user, which 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 following request returns an entity representation of a SharePoint item with a specified ID for exploring and performing restore operations.
Request: GET https://abc.tech.local:4443/v5/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
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: { "title": "Item1", "version": "5.0", "id": "1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dde42b25e5-5456-4e9f-91df-da6ea376840aee89936c-dd81-4678-9cb2-1b9d5573d28f", "name": "1_.000", "createdBy": "System Account", "creationTime": "2017-05-28T11:49:40", "modifiedBy": "System Account", "modificationTime": "2017-05-28T11:55:55", "_links": { "self": { "href": "https://support.north.local:4443/v5/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" }, "list": { "href": "https://support.north.local:4443/v5/restoresessions/2cd23751-b5bc-4024-ac11-7277953945a9/organization/sites/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dd/lists/1cfe4469-0a31-414b-9fd0-e84a087dcb739f242172-6d3f-47a2-816a-4989d45e88dde42b25e5-5456-4e9f-91df-da6ea376840a" }, "attachments": { "href": "https://support.north.local:4443/v5/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/attachments" } } } |