I would like my external application to modify content in WCM and deploy updated file to staging and production. How do I submit content to production using WebScripts or built in scripts via REST/HTTP APIs? I am having very hard time locating relevant part of the documentation. Any help is greatly appreciated.
You can submit to staging via web scripts. <url>/api/wcm/webprojects/{webprojectref}/sandboxes/{sandboxref}/submitter</url> <url>/api/wcm/webprojects/{webprojectref}/sandboxes/{sandboxref}/submitter?webApp={webApp?}</url
You could then auto deploy.
Unfortunately the deployment web scripts, although on the roadmap, are not yet implemented.
We are doing it via invoking group based workflow. So once you modify your content, submit to workflow. Then user need to approve, reject the workflow. Workflow have a feature for auto deploy.
Though not necessary this would fit to your requirements as you might not want any user interaction. Let me know if you need any more info.
Hi, I'm using submitter webscript for submit files from my web project, which has defined workflow. When I initiate submit from alfresco explorer, system creates new task and I can approve it. But when I initiate submit via submitter webscript, no task is created. Does this webscript bypassing defined workflow? Or is this a bug in 3.4.d community?