OpenCmis client - create alfresco tags

451 Views Asked by At

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?

1

There are 1 best solutions below

3
On

I am fairly certain that tags cannot be manipulated via CMIS. Instead, use the Alfresco REST API. It has support for tagging.