SP.RecycleBinItem.dirName property (sp.js)

Gets a value that specifies the site relative URL of the list or folder that originally contained the Recycle Bin item.

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

var value = SP.RecycleBinItem.get_dirName ()

Return value

Type: String

Remarks

It must not be null. It must be a URL of relative form. Its length must be equal to or less than 256.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/RecycleBin(recyclebinitemid)/dirName

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/RecycleBin(recyclebinitemid)/dirName

GET syntax

GET http://<sitecollection>/<site>/_api/web/RecycleBin(recyclebinitemid)/dirName