cancel
Showing results for 
Search instead for 
Did you mean: 

How to submit/deploy to production using WebScripts

mistigi
Champ in-the-making
Champ in-the-making
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.
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
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.

kmehta31
Champ in-the-making
Champ in-the-making
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.

shmoula
Champ in-the-making
Champ in-the-making
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?

Thanks in advance