v1

latestOpenAPI 3.1.02026-07-24318141.2 MB

Create Reward Table Entry

post/reward-tables/{id}/entries/

Path parameters

idstring required

id of the reward_table

Request body

reward_item_idstring required
reward_item_amountstring required
actionstring required

action key

Response

201

idstring
actionstring
action_displaystring
reward_item_amountinteger

Example response

{
  "id": "265e86f0-76ea-4b79-bf5b-d0e330a80ddd",
  "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-answered",
  "action_display": "Poll Answered",
  "reward_item_amount": 8
}