SP.File.deny Method (sp.js)
Denies approval for a file that was submitted for content approval.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.File.deny(comment)
Parameters
- comment
Exceptions
The item associated with the File or the SPModerationInformation for the item is null .
-or-
An error occurred when updating the item.
Remarks
Only documents in a list for which content approval has been enabled can be rejected.
REST resource endpoint
See File resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurl)/deny(comment)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurl)/deny(comment)
Resource parameters
- comment