SP.RecycleBinItemCollection.getById Method (sp.js)

Returns the recycle bin item with the specified identifier from the collection.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.RecycleBinItemCollection.getById()

Parameters

  • id
    Type: SP.Guid

    Specifies the identifier of the Recycle bin item.

Return value

Type: SP.RecycleBinItem

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/RecycleBin/getById(id)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/RecycleBin/getById(id)

Resource parameters

  • id