Post an Idea with an Existing Vote Count

You can use this API request to post an idea with a set amount of votes already attached.


The following parameters can be used in your post an idea with an existing vote count request:

Other options: wrap, v1


Permissions & Notes:

  • You must have the Submit idea permission under Custom Roles in the Advanced Editor to post an idea to a space.

  • You must have the custom Publish idea permission to have the idea automatically publish.

    • If you do not have the custom Publish idea permission your idea will go into moderation.
      • This role is automatically added to the list of custom roles with the install of the ideation plugin, but it still needs to be granted to a user.
  • You must have the ROLE_SET_IDEA_VOTES permission.

    • This is a role that may not be automatically created. You may create this role in the admin interface under Users & Groups > Tools > Custom Roles. The name should be ROLE_SET_IDEA_VOTES, and you choose the label.
  • This request was added in version

Sample Request

A POST post an idea with an existing vote count request for an idea ("Idea by REST API 102") with 4 votes, a body ("Body of the idea goes here"), topic ("testidea"), and space (spaceId: 11) to using a human-readable Username/Password (answerhub/test123) would look like this:

-u answerhub:test123 
-H "Accept: application/json" 
-H "Content-type: application/json" 
-d '{"title":"Idea by REST API 102","body": "Body of the idea goes here","topics":"testidea","votes":"4", "spaceId":"11"}' "" -v

Expected Response

Successful Response:

  • HTTP Status 201 - Created

Community User Interface Result

You will see the idea posted under "Test Space" (spaceId: 11)

Click Try It! to start a request and see the response here!