I'm trying to create a script to upload docs into an Alfresco repository using the opencmis library (python). Uploading the actual document is fine, but I'm bending my brain on how to add tags to the document.
I was thinking along the lines of:
props = doc.getProperties()
tagname = ['test']
tag = {"cm:taggable": tagname}
doc.updateProperties(tag)
But this throws a http 500 error
Any idea's anyone?
I am fairly certain that tags cannot be manipulated via CMIS. Instead, use the Alfresco REST API. It has support for tagging.