Developers
Adding a comment to an idea
Comments can be posted to an idea through this API. Currently just plain text comments are supported.
POST parameters
- comment - The comment body
- id - The ID of the idea
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/AddComment
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>