Forum Discussion

ChaviBonchev's avatar
ChaviBonchev
Khoros Alumni (Retired)
12 years ago

REST API call to check contest rating system type

When we're checking top kudoed messages within a contest: .../restapi/vc/boards/id/<contest_node_id>/kudos/leaderboard/top-messages?page_size=3&max_age=all It works as expected, but as soon as th...
  • AdamN's avatar
    AdamN
    12 years ago

    Ah, thanks for clarifying. In that case, I believe the setting you're looking for is:

    contest.ratings.primary_type

     

    So putting it all together, you call might look something like:

    /boards/id/<CONTEST ID>/settings/name/contest.ratings.primary_type

     In the case of Kudos, your response will look like:

    <response status="success">
    <value type="string">kudos</value>
    </response>

     In the case of 1-5 stars, your response will look like:

    <response status="success">
    <value type="string">contest_ratings</value>
    </response>