Unvote an idea
Added by IBM contributorIBM | Edited by IBM contributorPaul Bastide on December 21, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To unvote an idea, send a request to the web address of the recommendations collection for the idea.

To unvote an idea, complete the following steps:

1. To find out whether you have already vote an idea, retrieve a list of the people who have voted the idea and see if your name is included. See Getting a list of recommenders for more details. Alternatively, complete the following steps:
a. Retrieve an ideas feed that contains the entry. See Getting a feed of the latest posts added to all blogs or Getting a feed of recent posts for a blog for more information.
b. Find the Recommendations collection element for the idea, and then look for a element. If this element is present,you can vote this idea. If no is present, you have not vote the idea yet ,you can't unvote it. For example, the Recommendations collection for an idea that you have voted would look as follows:



<title type="text">Recommendations</title> 



term="recommend" /> 

<app:categories fixed="yes" /> 

<app:accept />

<snx:voted />


2. To unvote an idea, send an empty DELETE request to the web address listed as the href of the app:collection.

Method URI Description
DELETE /blogs/{handle}/api/recommend/entries/{entryId} Value of the href attribute of the <app:collection> element that has a child <title> element with a value of Recommendations in the blog entry.
Name Type Optional Description
string No {handle} represents the handle of the blog. A handle is a keyword that is specified when a blog is first created and is used in the construction of web addresses used to query the entries in a blog.
The handle is also the Community Uuid
string No The ID of the blog entry
Code Description
Indicates that the recommendation was successfully created. If an error occurs, this header contains one of the error codes.
When the user has not authenticated, we will send back 400 Unauthorized
Forbidden. When the user has already voted or has reached the allowing limit
Internal server error. When the request failed
PUT won't be supported