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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

/services/v2/idea.json

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 1.6.3.5.

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
https://apidocs.cloud.answerhub.com using a human-readable Username/Password (answerhub/test123) would look like this:

curl 
-u answerhub:test123 
-H "Accept: application/json" 
-H "Content-type: application/json" 
-X POST 
-d '{"title":"Idea by REST API 102","body": "Body of the idea goes here","topics":"testidea","votes":"4", "spaceId":"11"}' "https://apidocs.cloud.answerhub.com/services/v2/idea.json" -v

Expected Response

Successful Response:

  • HTTP Status 201 - Created

Community User Interface Result

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

Body Params
string
Defaults to Idea by REST API 101
string
Defaults to Body of the Idea
string
Defaults to testidea
int32
Defaults to 11
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json