v1

latestOpenAPI 3.1.02026-07-24318141.2 MB

List Reward Tables

get/reward-tables/

Query parameters

client_idstring required

Response

200

countinteger
{"stackTrail":"paths:/reward-tables/:get:responses:200:content:application/json:schema:properties:next","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/reward-tables/:get:responses:200:content:application/json:schema:properties:previous","oasType":"schema","type":"unknown"}

Example response

{
  "count": 2,
  "results": [
    {
      "id": "c7af01b7-6baf-4ba2-916f-8eb7811ba35c",
      "url": "http://localhost:8000/api/v1/reward-tables/c7af01b7-6baf-4ba2-916f-8eb7811ba35c/",
      "name": "Test Reward Table",
      "client_id": "FVQI5U57tfCyDV99YjhF3ExdlpiObg5JASvy81Mu",
      "action_choices": [
        {
          "action": "poll-voted",
          "action_display": "Voted on a poll"
        }
      ],
      "entries": [
        {
          "id": "e63a9894-19df-437d-af58-67fe75109732",
          "reward_item": {
            "id": "194d4d03-b7c0-4b72-bf7f-1974c92a4709",
            "url": "http://localhost:8000/api/v1/reward-items/194d4d03-b7c0-4b72-bf7f-1974c92a4709/",
            "client_id": "FVQI5U57tfCyDV99YjhF3ExdlpiObg5JASvy81Mu",
            "name": "Test Points"
          },
          "action": "poll-voted",
          "action_display": "Voted on a poll",
          "reward_item_amount": 5
        }
      ]
    }
  ]
}