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."
}
}
}