AnsweredAssumed Answered

Publishing a document through Alfresco REST API

Question asked by shariq on Jan 28, 2015
I am using Alfresco REST API to upload a file (/alfresco/service/api/upload?alf_ticket={TICKET…}). The file gets uploaded successfully but its Publish state is not 'Published' so this file is not accessible. I manually edited the properties and set the Publish state to 'Approve for publish'. After sometime when the file gets published it gets accessible. Problem again arouse when I upload a new version for this file (I have set overwrite to true and used versionable aspect) the new version has although replaced the old one (as visible in alfresco share)but still only the old version appears on accessing the file. So is there a way that publish state be set through Alfresco REST API?