Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Create a SharePoint Document on site with Managed Metadata using REST

$
0
0

Can I create a document using REST services on a SharePoint site that has managed metadata? We are on Office 365.

I tried something like this:

https:{_sitename}/_api/web/GetFolderByServerRelativePath('{filename}')/Files/add(url='a.txt',overwrite=true)

and get

{
    "error": {
        "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
        "message": {
            "lang": "en-US",
            "value": "Cannot deserialize data for type Microsoft.SharePoint.SPResourcePath."
        }
    }
}


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>