0

I am using SharePoint 2013 REST API and getting (400)Bad Request error when moving file from one Document Library to different Site-Sub Site's document library.

My hierarchy look like this -

Source - Project->SiteA->SubSite->DocLib->File.txt

Destination - Project->SiteB->SubSite->DocLib->File.txt

I am getting success when DocLib is in same subsite. Please suggest where I am getting wrong.

http://siteurl/SiteA/SubSite/_api/web/GetFileByServerRelativeUrl(@source)/moveto(newurl=@destination,flags=1)?@source='siteurl/SiteA/SubSite/Client/AAAAA/File.txt'&@destination='siteurl/SiteB/SubSite/Client/AAAAA/File.txt'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.