Developers

Rating an idea

Rating an idea via the API requires a POST request.

POST parameters

  • id - The ID of the idea
  • body - The comment body
  • value - The value of the rating [1 - 5]
  • public - True; anybody can see your review. False; only team members can see your review

Note, this API endpoint also requires valid X-On-Behalf-Of headers as it imports skill and interest information into Brainstorm. See here for more information.

POST: /api/idea/RateIdea

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.

<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>0</Id>
</ApiSuccessCreate>