Domanda

I m trying to copy folder with REST api like this

/_api/SP.MoveCopyUtil.CopyFolder

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

CopyFolder=(null)

And no folder copied

Any idea?

È stato utile?

Soluzione

_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"
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top