POST (Header:PUT) api.ashx/v3/ideas/vote.{json|xml}
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
IdeaId | Guid | Request Body | Id of Idea | Required | ||
Value | int | Request Body | The total amount of votes you wish to place for this idea. It needs to be under the maximum amount of votes you have available for this ideation and below the maximum votes allowed for any idea in this ideation if specified. | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.put({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v3/ideas/vote.json', data: { 'IdeaId': '49fec544-6df7-4a82-872b-f8be586d5e9e', 'Value': '6' } }).then(function(response) { // use response });
Example Responses
JSON
{ "Vote": { "Data": {}, "Errors": [ "string", "string" ], "Name": "name" }, "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Vote> <Data /> <Errors> <string>string</string> <string>string</string> </Errors> <Name>name</Name> </Vote> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>