r4nkt
  • Introduction
  • Getting Started
  • Concepts
    • Overview
    • Achievements
    • Actions
    • Activities
    • Badges
    • Criteria
    • Criteria Conditions
    • Criteria Groups
    • Custom Data Reference
    • Games
    • Leaderboards
    • Players
    • Rewards
    • Scores
  • Cookbook
    • Criteria Conditions
    • Achievements
  • API
    • Overview
    • Authentication
    • Achievements
    • Actions
    • Activities
    • Criteria
    • Criteria Groups
    • Leaderboards
    • Players
    • Player Badges
    • Rewards
    • Scores
  • Webhooks
    • Overview
    • Getting Started
    • Events
  • PHP SDK
    • Overview
    • Getting Started
  • Laravel Package
    • Overview
    • Installation
    • Webhooks
Powered by GitBook
On this page
  • Create a reward
  • Retrieve a reward
  • Update a reward
  • Delete a reward
  • List all rewards

Was this helpful?

  1. API

Rewards

Create a reward

POST /v1/games/:game_id/rewards

Path Parameters

Name
Type
Description

game_id*

string

Request Body

Name
Type
Description

custom_id*

string

name*

string

description

string

custom_data

json

Retrieve a reward

GET /v1/games/:game_id/rewards/:id

Path Parameters

Name
Type
Description

game_id*

string

id

string

Update a reward

PUT /v1/games/:game_id/rewards/:id

Path Parameters

Name
Type
Description

game_id*

string

id*

string

Request Body

Name
Type
Description

custom_id

string

name

string

description

string

custom_data

json

Delete a reward

DELETE /v1/games/:game_id/rewards/:id

Path Parameters

Name
Type
Description

game_id*

string

id

string

List all rewards

GET /v1/games/:game_id/rewards

Path Parameters

Name
Type
Description

game_id

string

PreviousPlayer BadgesNextScores

Last updated 3 years ago

Was this helpful?