I need to move documents from child level sub site document library to parent site. I tried using rest api MoveTo/CopyTo methods. But these methods are working only when the target and source libraries are present in the same site.
My requirement is I need to move documents from sub site level2 (https://SiteURL/Subsite1/Subsite2/LibraryName/filename.docx
) source library to sub site level1 (https://SiteURL/Subsite1/LibraryName/filename.docx
) target library.
Please suggest me how we can achieve this using REST API or any client side in Office 365 SharePoint Online.