I m trying to copy folder with REST api like this


POST data is

    "srcUrl": "https://test.sharepoint.com/_api/Shared Documents/CONS0006/PermWPS",
    "destUrl": "https://test.sharepoint.com/_api/Shared Documents/CONS0006/6"

In response it is showing


And no folder copied

Any idea?

  • 2
    Your URL seems invalid. Try removing /_api from your URLs – Atish Dipongkor - MVP Nov 25 '16 at 10:20
  • also is your site collection at root level without managed path ? – Siddharth Vaghasia Nov 25 '16 at 10:28
  • @AtishDipongkor thanks a lot for pointing the exact issue, working fine now – Anil D Nov 25 '16 at 10:44

_api should not be include in srcUrl or destUrl.

    "srcUrl": "https://test.sharepoint.com/Shared Documents/CONS0006/PermWPS",
    "destUrl": "https://test.sharepoint.com/Shared Documents/CONS0006/6"

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.