How to Set Threshold Points for Questions for Confluence Contributions
Problem
Based on the Questions for Confluence official documentation - Votes and experts, there are preset rules for points earned or lost by users for different actions.
Earn points by contributing to your Q&A community:
- 15 points when your answer is accepted
- 10 points each time your question or answer is upvoted
- -2 points each time your question or answer is down voted.
You're not awarded points for answering or up voting your own questions!
These settings don't match the preferences of all users, but cannot be modified in the admin interface.
Solution
The Threshold Points can be modified using API requests.
Please note that API usage is out of scope of Atlassian Support Offerings.
To modify the Threshold Points, you can use the following POST requests:
Unix Systems
Run the following
curl
command in your terminal.curl -X POST -H "Content-Type: application/json" -d '{"pointsPerAction": {"DOWNVOTED": -2, "UPVOTED": 25, "ACCEPTED": 50}}' http://<confluence-url>/rest/questions/1.0/admin/reputation/config -u username:password
Please replace the following parameters in the
curl
command:
• <confluence-url>
• username
• password
Windows Systems
Download the JAR of the
rest-client:
RESTClient GUI.- Open the JAR file to run the RESTClient application. Note: you'll need JDK/JRE configured on your machine to execute the file.
Insert the
POST
command using the following parameters:POST /rest/questions/1.0/admin/reputation/config (Content-Type: application/json) { pointsPerAction: { DOWNVOTED: -2, UPVOTED: 10, ACCEPTED: 15 } }