Developers

Adding a new Brainstorm Challenge

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

POST parameters

  • title - The title of the challenge
  • description - A brief description of the challenge
  • startDate - The start date of the challenge
  • submissionDeadline - (Optional) The date the challenge ends
  • tags - A comma seperated list of tags that should be added to the idea

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>