Permission needed for Rest API MoveTo() function

Copper Contributor

Hello community,

 

I am using REST API in SharePoint 2013 to create list items in custom list. In order to avoid the 5000 list view threshold limit, I am creating folder by month-year combination to save the list items. Currently we are creating the item in the list root and then using the REST MoveTo() function to push the list item in month-year folder. Since we do not want user to delete the records, we have created custom permission (copy of contribute permission) and removed the Delete item, Delete Version and Personal View checkbox from the permission. When I run the API using contribute permission, it works and pushes the list item in the folder. But when I use custom permission then it does not move the item to the folder and instead it show me 403 error. 

 

1) Does MoveTo() internally deletes the item and creates new item in the target folder ?

Note: We do not want to provide users with Delete item permission. 

 

2) Is the any other Rest API where I can directly create list item inside a folder to avoid the use of MoveTo() function at all.

 

Please advise.

 

Help needed!!!

2 Replies

@SolutionsManIsMe : Did not understand your reply. Please explain.