Community articleControl the voting limit
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

No abstract provided.

To control the voting limit, blog owner can send a replacement definition entry in Atom format to the blog's edit web address. Voting limit is set against whole blog not entry.

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

To control the voting limit, complete the following steps:

1. Retrieve the blog definition resource of the blog that you want to update.

2. Update the blog definition Atom document.


3. Send the updated blog definition Atom entry document to the edit URL of the My Blogs feed.
The content type of the Atom entry document must be application/atom+xml.


Method URI Description
PUT /blogs/homepage/api/blogs/{blogId} Value of the href attribute of the <link rel="edit"> element of each entry in the My Blogs feed.
Web address returned in the HTTP location header when the blog was created.
Content Type: application/atom+xml
Name Type Optional Description
string No The ID of the blog you wish to set the limit on.
Code Description
OK. Indicates that the blog definition was successfully found and returned. If an error occurs, the header will contain one of the following error codes:
Not Found.
When an action is performed and failed due to unknown error
Bad Request. When an action is performed but not allowed due to authorization reason
Forbidden. When an action is performed but not allowed due to action not allowed, such as try to add new idea to an idea blog that disallow adding new idea, or try to comment on an idea in a frozen blog
Indicates that the blog was successfully updated. If an error occurs, this header contains one of the error codes.
PUT /blogs/homepage/api/blogs/W29542eac4d88_472b_8bd9_36c2fef3ce14 HTTP/1.1

Authorization: Basic ...


Content-type: application/atom+xml

<?xml version='1.0' encoding='UTF-8'?>

<entry xmlns:snx=''


 <app:control xmlns:app="">

 <snx:voteLimit enabled="yes" limit="10" xmlns:snx=""></snx:voteLimit>