Developers

Adding a new Brainstorm Pipeline

Adding a new Pipeline via the API requires a POST request.

POST parameters

  • title - The title of the pipeline
  • description - A brief description of the pipeline

this API endpoint also requires valid X-On-Behalf-Of headers. See here for more information.

POST: /api/pipeline/add

Setting the ContentType

All POST requests to Brainstorm must have the following content type: application/x-www-form-urlencoded

        webRequest.ContentType = "application/x-www-form-urlencoded";
    

Upon successfull request, you will see an ApiSuccessCreate XML or JSON response. The value of the Id element will be the id of the pipeline that was just created.

<ApiSuccessCreate xmlns="http://schemas.datacontract.org/2004/07/Brainstorm.Model.DTO" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Message>Successfully created</Message>
  <StatusCode>200</StatusCode>
  <Id>5000</Id>
</ApiSuccessCreate>