How to Run a Process Using cURL

Document created by dprostko on Jun 13, 2011Last modified by ruchika_yadav on Mar 1, 2016
Version 2Show Document
  • View in full screen mode
You would like to start one of your processes from a script using cURL.
 

First, review the REST-ish section of our documentation on the subject http://help.boomi.com/display/BOD/Execute+Process+Operation.

Then, craft an XML file containing the information you need to run your process. The two key pieces of information you need are the process name and the atom ID. The file can be as simple as one line. Here is an example:

 
  <ProcessExecutionRequest processName="Test Process" atomId="6e282349-5952-4f21-8966-859f6d515503" xmlns="http://api.platform.boomi.com/" />


Save that XML to a file. In this example, it has been saved to foo.xml. Now, use cURL to POST that file to the appropriate URL. You will need to replace <username> and <account id> with their actual values.

 
   curl -u <username> -d @foo.xml https://platform.boomi.com/api/rest/v1/<account id>/executeProcess


If successful, the server will return a 200 code.

Attachments

    Outcomes