Enabling users to vote on knowledge base articles without signing in

Return to top

8 Comments

  • Nicole Saunders
    Zendesk Community Manager

    Hi Joe, 

    Did you get this working? 

    0
  • Joe Wheeler

    Hey Nicole, it did update after several hours.

    Thanks,

    Joe

    0
  • Nicole Saunders
    Zendesk Community Manager

    Glad to hear it, Joe.

    0
  • Amelia Cantrell

    Hi Nicole! Is there a way to clear vote counts off of the articles? Our articles were created long ago and we currently did some major edits and want to start off on a fresh perspective. EX our articles say 3 out of 8 found this helpful but we are wanting to completely clear those without having to recreate all new articles. Is this possible?

    0
  • Ekaterina Sumolaynina
    Zendesk Customer Care

    Amelia Cantrell Hi Amelia! It is indeed possible to remove the votes without re-creating the article. For this, you would need to use Help Center API:

    1. By calling below endpoint, you will be able to get vote_id 
      GET /api/v2/help_center/{locale}/articles/{article_id}/votes
    2. Then you would need to call Delete Vote endpoint
      DELETE /api/v2/help_center/votes/{vote_id}
      For more information, please refer to our API documentation: https://developer.zendesk.com/api-reference/help_center/help-center-api/votes/
    0
  • Patrick Passarella

    Hi, when voting with an anonymous user (while not logged in), the vote on the article is assigned to the user_id of who created the token to make the request, is that right? I wanted to differentiate the anonymous users from the ones who are signed in.

    0
  • Dave Dyson
    Zendesk Community Manager
    Hi Patrick,
     
    As the article above states, user data is recorded only for users who have signed in – so no user data will be recorded for anonymous users who vote.
    0
  • Patrick Passarella

    I understand, but that's not what's happening for me. When an anonymous user votes, it's recorded as if the vote was from the admin (the creator of the token used for the vote request).

    But what I understand is that the user_id for the vote should be null. It only works if I explicitly pass an empty string (or unexistent id) to the user_id on the vote object.

    0

Please sign in to leave a comment.

Powered by Zendesk