POST (Header:PUT) api.ashx/v2/ideas/vote.{json|xml}
OBSOLETE IN 10.2: Use V3 Instead
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
IdeaId | Guid | Request Body | [OBSOLETE IN 10.2: Use V3 Instead]Id of Idea | Required | ||
Value | bool | Request Body | [OBSOLETE IN 10.2: Use V3 Instead]Vote Value: true for Up Votes and false for Down Votes | Required | true,false |
Example Requests
Widget Javascript
jQuery.telligent.evolution.put({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/ideas/vote.json', data: { 'IdeaId': '49fec544-6df7-4a82-872b-f8be586d5e9e', 'Value': 'True' } }).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>