Community articleUnvote an idea
Added by IBM contributorIBM on March 25, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Unvote an idea


If you have not already vote an idea, you can do so by sending a request to the web address of the recommendations collection for the idea.

See Authenticating requests for information about how to authenticate the request.

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:
<app:collection 
href="https://enterprise.example.com:9444/blogs/amyblog/api/recommend/entries/
1fa2dae3-f0af-457c-bfe7-eec0f5f01833?lang=en_us"> 
<title type="text">Recommendations</title> 
<category 
scheme="http://www.ibm.com/xmlns/prod/sn/collection" 
term="recommend" /> 
<app:categories fixed="yes" /> 
<app:accept />
<snx:voted />
</app:collection> 

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

Input

None.

Output

None.

Input
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
handle
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.
entryId
string No The ID of the blog entry
Output
Code Description
200
Indicates that the recommendation was successfully created. If an error occurs, this header contains one of the error codes.
400
When the user has not authenticated, we will send back 400 Unauthorized
403
Forbidden. When the user has already voted or has reached the allowing limit
500
Internal server error. When the request failed
405
PUT won't be supported